python if variable is not integer