code: def RenameFunction(function, name):
      
      return FunctionType(function.__code__,
                          function.__globals__,
                          name,
                          function.__defaults__)
docs: Returns a function identical to the specified function, but with
      the specified name.