Use json_util from a module that works with latest pymongo drivers.