Made a pythonskript instead of crappy shellscript.