Make the use of metaclasses Py 2/3 compatible