This port will be removed on 2020-12-31 if not fixed
This is a backport of a Python 3 module to Python 2 and can probably go.
Python 2 only, backport of Python 3