pyLast is a Python interface to Last.fm and other API-compatible websites such as Libre.fm.