Just a style opinion, not a demand for change: I much prefer the original; the use of the bare underscore makes this sort of thing less readable and slightly ugly to my eye.  In the case of the path.split(), an alternative is to index it with [-1].