A python quiz engine