check if input value is integer python