Fix editor failing with Python 3

b mode has no effect with Python 2, but gives us binary IO with Python 3