title: Get file name only (without extension and directory) from file path
body: <p>What I have:</p>
  
  <pre><code>import os
  import ntpath
  
  def fetch_name(filepath):
      return os.path.splitext(ntpath.basename(filepath))[0]
  
  a = u'E:\That is some string over here\news_20.03_07.30_10 .m2t'
  b = u'E:\And here is some string too\Logo_TimeBuffer.m2t.mpg'
  
  fetch_name(a)
  &gt;&gt;u'That is some string over here\news_20.03_07.30_10 ' # wrong!
  fetch_name(b)
  &gt;&gt;u'Logo_TimeBuffer.m2t' # wrong!
  </code></pre>
  
  <p>What I need:</p>
  
  <pre><code>fetch_name(a)
  &gt;&gt;u'news_20.03_07.30_10 '
  fetch_name(b)
  &gt;&gt;u'Logo_TimeBuffer'
  </code></pre>