Fixed up the trivia.py file to make it compliant with python 2.7.x/3.x.
Also flake8 clean.