Solutions for pythonchallenge.com riddles