Compatibility with 64-bit Python 2.x.
Partial compatibility with Python 3.x.