fix: resolve python3 compiler warnings (#2) (#3781)

8 files changed