Trying to solve the Python Challenge at http://www.pythonchallenge.com