I'd suggest an enhancement to core cpython might be desirable here too. Have you looked into doing that?