code: def with_subprocess(cls):
      
  
      def run_process(self, command, input=None):
          """
          Run the command and return a tuple of three things.
  
          1. exit code - an integer number
          2. stdout - all output that was sent to stdout
          2. stderr - all output that was sent to stderr
          """
          if isinstance(command, (tuple, list)):
              command = ' '.join('"%s"' % x for x in command)
  
          proc = subprocess.Popen(
              command,
              shell=True,
              stdout=subprocess.PIPE,
              stderr=subprocess.PIPE
          )
          out, err = proc.communicate(input=input)
          return proc.returncode, out.strip(), err.strip()
      cls.run_process = run_process
      return cls
docs: a class decorator for Crontabber Apps.  This decorator gives the CronApp
      a _run_proxy method that will execute the cron app as a single PG
      transaction.  Commit and Rollback are automatic.  The cron app should do
      no transaction management of its own.  The cron app should be short so that
      the transaction is not held open too long.