Fix metaclass syntax on py3k