def find_checks(argument_name):
 checks = []
 function_type = type(find_checks)
 for (name, function) in globals().iteritems():
  if (type(function) is function_type):
   args = inspect.getargspec(function)[0]
   if ((len(args) >= 1) and args[0].startswith(argument_name)):
    checks.append((name, function, args))
 checks.sort()
 return checks

def find_checks ( argument_name ) : checks = [ ] function_type = type ( find_checks ) for ( name , function ) in globals ( ) . iteritems ( ) : if ( type ( function ) is function_type ) : args = inspect . getargspec ( function ) [ 0 ] if ( ( len ( args ) >= 1 ) and args [ 0 ] . startswith ( argument_name ) ) : checks . append ( ( name , function , args ) ) checks . sort ( ) return checks
find all globally visible functions where the first argument name starts with argument_name .