For musical object representation, score rendering, analysis etc. Music21 is a very magical library. Setup requires configuring a musicXML renderer (I recommend MuseScore) and depends on Scipy and Matplotlib. Follow their instructions here
For optional WAV rendering using FluidSynth or another soundfont.
Setup for this package is a little involved, check their directions here