FIX: PyLong_AsLongAndOverflow doesn't exist before Python 2.7; use PyLong_AsLong instead.