Working out the problems in Learn Python the Hard Way