Bash Script Loop Through Array Python Methods Explained