More information about tools for advanced work in algorithmic composition and computational musicology in Python can be found below.
The athenaCL system is an open-source, object-oriented composition tool written in Python. The system can be scripted and embedded, and includes integrated instrument libraries, post-tonal and microtonal pitch modeling tools, multiple-format graphical outputs, and musical output in Csound, SuperCollider, Pure Data, MIDI, audio file, XML, and text formats.
A flexible tooolkit for computer-aided musicology.
The system provides input via MusicXML, MIDI, ABC, Musedata, and Humdrum, and output via MusicXML, MIDI, and LilyPond; a wide range of tools for musical manipulation, analysis, graphing, transformation, and representation; and an integrated corpus of thousands of searchable works.