Work around SimpleNamespace becoming unhashable in Python 3.4