PyPandora is longer actively maintained. There is still some good examples in the code (async webserver using only python builtins, streaming music to an html5 app), but the Pandora ad-hoc api is no longer functioning. Thanks for enjoying!
PyPandora is a cross-platform Pandora Radio player in a single python script.
$ python pypandora.py