Fix metaclass-related failure
Fix str/bytes problems
Fixing metaclasses