Can the python avro api encode to an in memory byte array instead of writing to a file? If so, a code sample would be wonderful. I've tried using io.BytesIO but received: AttributeError: '_io.BytesIO' object has no attribute 'write_long' Thanks, Grant