testing mongodb using pymongo module in python