Python 3 compatibility: comparison of subprocess output.