The scenario registers the guest, issues a QR ticket by email, and at the door checks the code, marking the guest as checked in.
Automating stepik and Gmail takes no code: a ready-made scenario does the routine for you.
You can launch this stepik + Gmail integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.