How do I use the GPIO pins in Python

You can use python3-gpiod via Bartoz’s python example. You need to get the gpio chip and line numbers from our lgpio tool.