Traded python script for bash script