python if variable equals integer