pyobjects: sync with upstream