Internal analysis helpers

The analysis helpers support the enumeration implementation. They are not part of the supported public Python API.