Fix test_bgzf.py under Python 3 (use text mode handle)