Working with Avro file format in Python the right way