check if input is integer python