still minor things to fix for to_json, to_mongo and need a to_python encoding/decoding