Implementation of PEP 3143