Rewrote print_midi_file.py so it doesn't use a private method.