Fixed (int,long) type checks in Python 2.x
Skip initial optimality check if KKTREG is set