Rewrite Python initialize code to set paths properly
Maniphest Tasks: T6503, T1625
This fails on KDE Neon.