Flask app analyzing chords in a song file