i.MX7 Python And KeyPad

With Python I can control GPIO signals through the gpiod library (thanks for the previous help … it was essential) but I can’t control the keypad (Kpp).
Can someone give me a few tips?
Thank you in advance for those who want to answer me.

I solved using the table below (it might be useful to someone…)
Thank you.

Thank you for the answer, glad you were able to figure it out :-).