Get rid of double defaults in shell script and python script