importing pymongo should happen in main