You'll probably want to include `long` for Python 2 too.  `RANGE_TYPES` from above should cover this without including the `complex` type.