added python 2 and python 3 support to challenge7.pyw