py3: better stderr/stdout output