Replacement for @raoulb pr#914

See #914

ToDo:
- [x] tests
- [x] final rebase
Why don't we make `cst_table` a class attribute. Then we can point people to that in the documentation, and they won't have to read the source code (we can also add the attribute directly to Sphinx, so that it will be right there).