I think it is also not entirely clear that `basename` is `os.path.basename()`