python self-hosted review fixes