create python version of the bash script