Set pymongo on mongo resource