OEIS: Fix compatibility with Python 3.