Fixed up meta class construction for Python 2 compat.