import subprocess


def main():
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["apt-get", "-y", "install", "avahi-daemon"])
    subprocess.call(["apt-get", "-y", "install", "rpi-update"])
    subprocess.call(["pip", "install", "virtualenv"])


if __name__ == '__main__':
	main()

import subprocess


def main():
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["apt-get", "-y", "install", "ipython-notebook"])
    subprocess.call(["apt-get", "-y", "install", "avahi-daemon"])
    subprocess.call(["apt-get", "-y", "install", "rpi-update"])
    subprocess.call(["pip", "install", "virtualenv"])


if __name__ == '__main__':
	main()

Add python to install script
Add python to install script

  import subprocess
  
  
  def main():
      subprocess.call(["apt-get", "update"])
      subprocess.call(["apt-get", "-y", "upgrade"])
      subprocess.call(["apt-get", "-y", "install", "python-dev"])
      subprocess.call(["apt-get", "-y", "install", "python-pip"])
+     subprocess.call(["apt-get", "-y", "install", "ipython-notebook"])
      subprocess.call(["apt-get", "-y", "install", "avahi-daemon"])
      subprocess.call(["apt-get", "-y", "install", "rpi-update"])
      subprocess.call(["pip", "install", "virtualenv"])
  
  
  if __name__ == '__main__':
  	main()
  
Add python to install script
## Code Before:
import subprocess


def main():
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["apt-get", "-y", "install", "avahi-daemon"])
    subprocess.call(["apt-get", "-y", "install", "rpi-update"])
    subprocess.call(["pip", "install", "virtualenv"])


if __name__ == '__main__':
	main()

## Instruction:
Add python to install script
## Code After:
import subprocess


def main():
    subprocess.call(["apt-get", "update"])
    subprocess.call(["apt-get", "-y", "upgrade"])
    subprocess.call(["apt-get", "-y", "install", "python-dev"])
    subprocess.call(["apt-get", "-y", "install", "python-pip"])
    subprocess.call(["apt-get", "-y", "install", "ipython-notebook"])
    subprocess.call(["apt-get", "-y", "install", "avahi-daemon"])
    subprocess.call(["apt-get", "-y", "install", "rpi-update"])
    subprocess.call(["pip", "install", "virtualenv"])


if __name__ == '__main__':
	main()
