def methods_of(obj):
 result = []
 for i in dir(obj):
  if (callable(getattr(obj, i)) and (not i.startswith('_'))):
   result.append((i, getattr(obj, i)))
 return result

def methods_of ( obj ) : result = [ ] for i in dir ( obj ) : if ( callable ( getattr ( obj , i ) ) and ( not i . startswith ( '_' ) ) ) : result . append ( ( i , getattr ( obj , i ) ) ) return result
get all callable methods of an object that dont start with underscore returns a list of tuples of the form .