Python HashTable "homework" assignment