def create_unbound_method(func, cls):
 if six.PY2:
  return MethodType(func, None, cls)
 if six.PY3:
  return func

def create_unbound_method ( func , cls ) : if six . PY2 : return MethodType ( func , None , cls ) if six . PY3 : return func
create an unbounded method from a function and a class .