Make doctest output portable

Python 3.x dropped the `L` suffix for the repr of long integers.