Solutions to python challenge.