That gpiod sounds very promising, and easy to use with https://pypi.org/project/gpiod/   I need to wait until I get back home to work on my opiz3