Title: #5636: Improve assertion when verifying paths for Python modules
Sorry it fell through the cracks. LGTM.
Small question - if usage of `os.path.abspatch` also solves the
issue? Can you print how the paths are evaluated then?
I think `realpath` is better, `abspatch` doesn't resolve sym links.
See the full comment at https://github.com/SSSD/sssd/pull/5636#issuecomment-932161779