.NET BinaryReader and BinaryWriter for Python 3