Bash Script Array Size Python Code