          is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
          log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
          logger.debug("Executing: %s. PID: %s", self.command, os.getpid())
          if hasattr(arguments, "amd") and arguments.amd:
              from lib.plaidml_tools import setup_plaidml
              setup_plaidml(arguments.loglevel)
          try:
              script = self.import_script()
              process = script(arguments)
              process.process()
          except KeyboardInterrupt:  # pylint: disable=try-except-raise
 
</s> remove         numeric_level = getattr(logging, loglevel.upper(), None)
 </s> add         if isinstance(loglevel, int):
            numeric_level = loglevel
        else:
            numeric_level = getattr(logging, loglevel.upper(), None) </s> remove                 self.plaid = plaidlib(log=log)
 </s> add                     loglevel = self.logger.getEffectiveLevel()
                self.plaid = plaidlib(loglevel=loglevel, log=log)
            plaidml_found = self.setup_amd(arguments.loglevel)
            if not plaidml_found:
                safe_shutdown()
                exit(1)
          is_gui = hasattr(arguments, "redirect_gui") and arguments.redirect_gui
          log_setup(arguments.loglevel, arguments.logfile, self.command, is_gui)
          logger.debug("Executing: %s. PID: %s", self.command, os.getpid())
          if hasattr(arguments, "amd") and arguments.amd:
            plaidml_found = self.setup_amd(arguments.loglevel)
            if not plaidml_found:
                safe_shutdown()
                exit(1)
            plaidml_found = self.setup_amd(arguments.loglevel)
            if not plaidml_found:
                safe_shutdown()
                exit(1)
          try:
              script = self.import_script()
              process = script(arguments)
              process.process()
          except KeyboardInterrupt:  # pylint: disable=try-except-raise
keep keep keep keep replace replace keep keep keep keep keep
 PlaidML Updates

- Add fan-amd details to Cli
- Update Extract Parallel Processing rules for plaidML
- Handle missing plaidML lib on amd flag
- Pass through correct loglevel from GPUStats to plaidml_tools 
lib/cli.py