def public_methods(obj):
 return [name for name in all_methods(obj) if (name[0] != '_')]

def public_methods ( obj ) : return [ name for name in all_methods ( obj ) if ( name [ 0 ] != '_' ) ]
return a list of names of methods of obj which do not start with _ .