Htm.core and Python 3.11 compatibility

To be honest I don’t use this version these days - I use BrainBlocks implementation instead.

However I see there’s another update to the basic HTM idea:

which I thought about trying, but haven’t got around to it yet.
In terms of language I rarely leave Python but will run whatever version works in its own virt-env. However tweaks to the CPP code (bugfixes) are sometimes required too.