python module fixes

python utest was broken because the module system had changed how file paths work. Fix the assorted bugs that prevented correct module loading