old_contents: #! /usr/bin/env python3
  
  from setuptools.command import easy_install
  
  requires = ["dnslib", "dkimpy>=0.7.1", "pyyaml", "ddt", "authheaders"]
  
  for module in requires:
      easy_install.main( ["-U",module] )
  
new_contents: #! /usr/bin/env python3
  
  import subprocess
  import sys
  
  requires = ["dnslib", "dkimpy>=0.7.1", "pyyaml", "ddt", "authheaders"]
  
  def install(package):
      subprocess.call([sys.executable, "-m", "pip", "install", package])
  
  for module in requires:
      install(module)
  
subject: Use pip instead of easy_install