Python 3.8 has removed the "m" suffix in the library name, add a check for it. Backport of fa83746549 Resolves: RHEL-15503
fa83746549