Fixed for versions of Python that are not on Travis.