old_contents: import psutil
  
  
  def run(config):
      return psutil.net_io_counters(pernic=True)
new_contents: #!/usr/bin/env python
  
  import pickle
  import sys
  import psutil
  
  pickle.dump(psutil.net_io_counters(pernic=True), sys.stdout)
  
subject: Update network.py