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