add import error handling for pymongo package; in some installation pymongo/mongodb is not available