In various places in the codebase, variables are named with single letters, such as S for an output dictionary. This is a commonly recognized code smell making the readability of the codebase worse. Such variables should be replaced with informative names.