get the relative path via python instead of perl