Future-proofing for Python 3.