So this is not to do right now, but we probably want to try and type annotate all the bits of this that do O(mesh size) operations in pure python (like this does).