Found out that metaclass syntax changed for py3. Resolved syntax issues
Adding corrected pytests