python 3.11 compatibility related fixes
This Mr is required for python 3.11 (which is not runned in this MR) open-source/logilab-database!31 (merged)
This Mr is required for python 3.11 (which is not runned in this MR) open-source/logilab-database!31 (merged)