Use six.with_metaclass instead of some hack.