Replaced the shell script with a python one.