code: def find_first_object(self, ObjectClass, **kwargs):
          
          filter = None
          for k, v in kwargs.items():
              cond = getattr(ObjectClass, k) == v
              filter = cond if filter is None else filter & cond
  
          return list(ObjectClass.scan(filter, limit=1))[0]
docs: Retrieve the first object of type ``ObjectClass``,
          matching the specified filters in ``**kwargs`` -- case sensitive.