Generating JSON Documents From SQLite Databases In Python