def remove_root(root, paths):
 return [pth.replace((root + '/'), '') for pth in paths]

def remove_root ( root , paths ) : return [ pth . replace ( ( root + '/' ) , '' ) for pth in paths ]
returns paths made relative to root .