Quiz: framework for a quiz in Python, ported from my Bash version