Fix finding of startxref entry in Python 3.