code: def child_main(sender, delay):
      
      args = ['ps', '-axwwo', 'user,pid,ppid,pgid,%cpu,rss,command']
      while True:
          sender.send(subprocess.check_output(args).decode())
          time.sleep(delay)
docs: Executed on the main thread of the Python interpreter running on each
      target machine, Context.call() from the master. It simply sends the output
      of the UNIX 'ps' command at regular intervals toward a Receiver on master.
      
      :param mitogen.core.Sender sender:
          The Sender to use for delivering our result. This could target
          anywhere, but the sender supplied by the master simply causes results
          to be delivered to the master's associated per-host Receiver.