The pyobject library has greatly changed, and pyobject versions since 1.2.4 has fixed the issue. pyobject ยท Github
Note: I'm the developer of pyobject.
pyobject