`ssl.wrap_socket` was [removed in Python 3.12](https://docs.python.org/3.12/whatsnew/3.12.html#ssl) (it was deprecated in Python 3.7). I'll make a PR to update.