Fix Archlinux build: python 3.12 support, fix escape sequences, unit test: assertTrue, randint: int arguments