If you are willing to sacrifice performance, you can implement dicts via linear lookup in much less code than a proper hash table.
It’s Python, you’ve already sacrificed performance, what a little bit more?
It’s Python, you’ve already sacrificed performance, what a little bit more?