Bash Send Output To Array Python Methods