code: def find_one(self, collection, query):
          
          obj = getattr(self.db, collection)
          result = obj.find_one(query)
          return result
docs: Search a collection for the query provided and return one result. Just
          a raw interface to mongo to do any query you want.
  
          Args:
              collection: The db collection. See main class documentation.
              query: A mongo find query.
          Returns:
              pymongo Cursor object with the results.