The `dirpaths = [p+'/.*' for path in paths for p in glob.glob(path) if os.path.isdir(p)]` in `make_sample_paths` should use `*` instead of `.*`