Allow setting attributes on PyObjects