Returns member by name from parent class if it exists.

def FindParentMember(cls, typecheck_parent, name):
    """Returns member by name from parent class if it exists."""
    if typecheck_parent and hasattr(typecheck_parent, name):
      return getattr(typecheck_parent, name)
    return None