Bash Loop Through List Of Strings In Python