support PEP 667 of Python-3.13.0
Adapting to pure spirit of PEP 667 python/cpython#118888 (comment)
Make it work with Python-3.13.0b1.
It seems later in 3.13.0b2 there is a backpedaling, as too much packages are impacted per the perfection.
But code change was tiny anyway