Update to work with PY3.11. (#320)

3 files changed