old_contents: #!/usr/bin/env python
  
  import subprocess
  import sys
  
  if __name__ == "__main__":
      subprocess.call([sys.executable, "-m", "tox",
                       "-i", "ALL=https://devpi.net/hpk/dev/",
                       "--develop"] + sys.argv[1:])
  
new_contents: #!/usr/bin/env python
  
  if __name__ == "__main__":
      import subprocess
      import sys
      subprocess.call([sys.executable, "-m", "tox",
                       "-i", "ALL=https://devpi.net/hpk/dev/",
                       "--develop"] + sys.argv[1:])
  
subject: make runtox.py not import external modules unless run as a script