I  wonder what effects (e.g. runtime penatly) above changes would have on python2 operation...

why would we want to read files in binary mode + explicit decoding now?