Working With Array In Python Code Practices