Compatibility with python 3.2
Subprocess output needs to be decoded on python 3