more Py compat

--HG--
branch : wip-refactor
get relative path ?

--HG--
branch : wip-refactor
merge

--HG--
branch : wip-refactor
minor fix

--HG--
branch : wip-refactor