validate if input is integer python