def _get_method_info(cls):
 result = {}
 methods = inspect.getmembers(cls, inspect.ismethod)
 for (name, method) in methods:
  if name.startswith('_'):
   continue
  result[name] = (method, _get_arg_count(method))
 return result

def _get_method_info ( cls ) : result = { } methods = inspect . getmembers ( cls , inspect . ismethod ) for ( name , method ) in methods : if name . startswith ( '_' ) : continue result [ name ] = ( method , _get_arg_count ( method ) ) return result
get all methods defined in a class .