code: def main_func(args=None):
      
      # we have to initialize a gui even if we dont need one right now.
      # as soon as you call maya.standalone.initialize(), a QApplication
      # with type Tty is created. This is the type for conosle apps.
      # Because i have not found a way to replace that, we just init the gui.
      guimain.init_gui()
  
      main.init()
      launcher = Launcher()
      parsed, unknown = launcher.parse_args(args)
      parsed.func(parsed, unknown)
docs: Main funcion when executing this module as script
  
      :param args: commandline arguments
      :type args: list
      :returns: None
      :rtype: None
      :raises: None