Array Indexing In Python For Loop