Python Create Array And Hashing