reorder import os in mongo.py