Python: Fix property access with director