exchanges with the OS in python3 require more careful choice of bytes and str