Arrays And Hashing Python Code