mongo: guard against the absense of pymongo