My solutions to python challenge