"Better" path handling in CPython extension.