Bash Convert Variable To Array Python Practice