Use json pymongo with a bit of sugar.