Feel free to use/steal (with proper attribution) some of my codez..
Set Theory Java Library: A Java library for manipulating and analyzing Pitch-Class Set-like structures. It can be used in any JVM language, such as Java, Groovy, Clojure, Scala, etc.
BBC Download: A Python application for downloading sound files from the (gargantuan) BBC online audio library. The library is gigantic and the web interface only allows downloading one file at a time.