Get filename from path without extension

>>> print os.path.splitext(os.path.basename("hemanth.txt"))[0]
hemanth