Refactor logging, "pythonic" DialogHandler