Opravil jsem to v Pythonu:https://github.com/python/cpython/pull/9713 Bude k dispozici v příští verzi Pythonu 3.7 a novější.