Fix pylint warnings.
Refactor DialogManager into public and private attributes.