How To Loop Over An Array In Python