Merge pull request #769 from hugovk/master

Add support for Python 3.12