Python 3.12 support

The pin on PyTensor should be lifted soon and there is work on PyMC that requires the latest version