Python: Fix property access with director

When adding a property in a class extending a directory class, we can't set/read property correctly.
Here the fix, and the test