ITunes is a project mainly written in Python, it's free.
iTunes Scripts
This repository contains a collection of iTunes related scripts.