fix for py2.x reading from bytes.