solution to web riddle pythonchallenge