code: def find_first_object(self, ObjectClass, **kwargs):
          
  
          print('dynamo.find_first_object(%s, %s)' % (ObjectClass, str(kwargs)))
          query = self.db.engine.query(ObjectClass)
          for field_name, field_value in kwargs.items():
  
              # Make sure that ObjectClass has a 'field_name' property
              field = getattr(ObjectClass, field_name, None)
              if field is None:
                  raise KeyError("DynamoDBAdapter.find_first_object(): Class '%s' has no field '%s'." % (ObjectClass, field_name))
  
              # Add a case sensitive filter to the query
              query = query.filter(field == field_value)
  
          # Execute query
          out = query.first(desc=True)#, attributes=['password'])
          return out
docs: Retrieve the first object of type ``ObjectClass``,
          matching the filters specified in ``**kwargs`` -- case sensitive.
  
          ``find_first_object(User, username='myname')`` translates to
          ``User.query.filter(User.username=='myname').first()``.