For the records - the SR in comment #2 fixed a different python 3.8 issue (in the libapparmor configure script) and mentioned that it will _not_ fix this bug. On the positive side, there's a proposed patch for this bug upstream: https://github.com/python/cpython/pull/17098 (currently waiting for CLA paperwork)