Python gotcha - "is" operator on integers