Kurt's a Python library for reading and writing Scratch project files.
http://github.com/tjvr/kurt.git
latest