Bash Scripting For Loops In Python