Python snippets: get absolute path relative to source file