python validate if input is number