A python class to parse midi files