Updated sh and python script