HOW
If anybody is interested, I have the complete code in Python3 with several speed optimizations. Do tell!
I would like to take a quick look at it, I admit, more out of curiosity than anything else. For the moment, apart from reducing the number of possibilities I do not see too much interest, I could be wrong of course.