Support old versions of Python 3