Accessing Array using while Loop Array Module in Python