redis._compat has a BytesIO declaration, which works in both 2.x and 3.x