Helper functions to work with chords and tabs in python.