def strip(path, count):
 path = '/'.join(path.split(os.sep))
 return path.split('/', count)[(-1)]

def strip ( path , count ) : path = '/' . join ( path . split ( os . sep ) ) return path . split ( '/' , count ) [ ( - 1 ) ]
strip -> string return a copy of the string s with leading and trailing whitespace removed .