Fixes for settings.py and pymongo to bson transition of modules binary a...

...nd json_util