solutions to python challenge