Python script to handle GPIO button event?

Have you reviewed this post :-

How to control GPIO via Python 3

You will definitely need to know the pin mapping for the 3328.

ROC-RK3328-CC-V1 Headers - Google Sheets