TST Fix tests for Python 2

Python 3 accepts 'br' as mode string, Python 2.7 does not (must be
'rb'). Aaaargh!