Have you tested your code on Python 3? The syntax for metaclasses has changed in Python 3. You might want to use the six library to support Python 2 and 3.