def _argument_adapter(callback):
 def wrapper(*args, **kwargs):
  if (kwargs or (len(args) > 1)):
   callback(Arguments(args, kwargs))
  elif args:
   callback(args[0])
  else:
   callback(None)
 return wrapper

def _argument_adapter ( callback ) : def wrapper ( * args , ** kwargs ) : if ( kwargs or ( len ( args ) > 1 ) ) : callback ( Arguments ( args , kwargs ) ) elif args : callback ( args [ 0 ] ) else : callback ( None ) return wrapper
returns a function that when invoked runs callback with one arg .