Gets rid of python2-style class definition.