solutions for http://www.pythonchallenge.com/