The syntax for specifying metaclasses in Python 3 changed, and this (and other examples in the pull request, like the HookControllerMeta) is the only method I could come up with for making it work across Python 2 and 3.

For more info, see:  http://mikewatkins.ca/2008/11/29/python-2-and-3-metaclasses/