Faster dictionary lookup with exceptions in Pypy