Python, extract file name from path, no matter what the os/path format
<p>Which Python library can I use to extract file names from paths, no matter what the operating system or path format could be ?</p>

<p>For example, I'd like all of these paths to return me "c" : </p>

<pre><code>a/b/c/
a/b/c
\a\b\c
\a\b\c\
a\b\c
a/b/../../a/b/c/
a/b/../../a/b/c
</code></pre>
