some progress with python metaclasses