Avoid introducing unicode to python 2 clients

Unlaterally applying decode() to the output of check_output
results in _do_command always returning a unicode string.

This is not a problem in python 3, but always introduces
complications for py2 developers who may not be ready to deal
with it yet.