build: add support for python3.11 and higher