Any module that declars a global instance of an object
gaves me the following error:
AttributeError: 'str' object has no attribute '__bases__'
This is because the check code to check that the token
is a class object is a little too greedy. It'll even
catch instances because of the hasattr...
The patch will work on 2.3 and up...but I think it'll
run an 2.2 and maybe 2.1.