Bash Output To Array Python Definition