Fixed exception when importing decorator in python 2.7

I had to make this change to pytools in order for pymbolic to work on my machine.
I'm not sure if TypeError was meant to catch the missing `level=` kwarg in Python 2.4 or a typo for ImportError.