def get_base_attributes(entity):
attributes = {}<EOL>cls = entity.__class__<EOL>for attr, _ in inspect.getmembers(cls, lambda o: not isinstance(o, property) and not inspect.isroutine(o)):<EOL><INDENT>if not attr.startswith("<STR_LIT:_>"):<EOL><INDENT>attributes[attr] = getattr(entity, attr)<EOL><DEDENT><DEDENT>return attributes<EOL>
Build a dict of attributes of an entity.

    Returns attributes and their values, ignoring any properties, functions and anything that starts
    with an underscore.