pylastfm provides a Python module to interact with the Last.fm / Audioscrobbler webservices. You can retrieve various information from the webservice in all available formats and in addition you will be able to use this information in a pythonic way.
There is no official release at the moment, but feel free to checkout the current sources:
svn co https://pylastfm.svn.sourceforge.net/svnroot/pylastfm pylastfm