FAQ: How can I control the GPIOs from Python/Is there an onionGpio module for Python3?
pyOnionGpio was written as a quick and dirty wrapper for the sysfs gpio interface way back in 2016. We don't recommend using it for anything other than a hello world.
There are other better sysfs gpio libraries available for Python3:
Let us know how it goes!