BF: fix string / bytes for stdout from python 3