Solutions to http://www.pythonchallenge.com/