updated python script, shell script is no longer required