added wrapper, need to make it work with spec_or_id
example of to_mongo with pymongo