This port will be removed on 2020-12-31 if not fixed
This is a compat port, it's expected to expire when python27 expires.
Python 2 only, backport of Python 3