Handle long type on Python 2.