Fixed subprocess output breaking in python 3

It was breaking because in python 3 it uses bytes instead strings.