Simple perfect hashing in Python