Implemented another approach for metaclasses that works on both, Python 2 and 3.