def list_public_methods(obj):
 return [member for member in dir(obj) if ((not member.startswith('_')) and hasattr(getattr(obj, member), '__call__'))]

def list_public_methods ( obj ) : return [ member for member in dir ( obj ) if ( ( not member . startswith ( '_' ) ) and hasattr ( getattr ( obj , member ) , '__call__' ) ) ]
returns a list of attribute strings .