Accomodate older versions of Python 3.