def path_to_songname(path):
 return os.path.splitext(os.path.basename(path))[0]

def path_to_songname ( path ) : return os . path . splitext ( os . path . basename ( path ) ) [ 0 ]
extracts song name from a filepath .