solutions to some of "46 python exercises" page