old_contents: import psutil
  
  
  def run(config):
      memory = {}
  
      mem = psutil.virtual_memory()
      for name in mem._fields:
          memory[name] = getattr(mem, name)
      return memory
new_contents: #!/usr/bin/env python
  
  import psutil
  import pickle
  import sys
  
  memory = {}
  
  mem = psutil.virtual_memory()
  for name in mem._fields:
      memory[name] = getattr(mem, name)
  
  pickle.dump(memory, sys.stdout)
  
subject: Update memory.py