resolver/output: unicode(), not str() for python2