Reverse midi files using Python.