1. I used the term `node` based on the doctoring of `fiff_open` which says that `directory` is a "list of nodes"
2. generally `is` compares the object identity (which might work in this case because of the way Python handles integers, I am not sure) whereas `==` compares values, which is more explicit for what we want here