Renamed MidiFile.format to MidiFile.type and fixed a bug in mido-play.