PyPandora is a python interface to Pandora based on pianobar
It can either be used directly as a python module with an incredibly simple interface:
import pypandora
pypandora.login(username, password)
print pypandora.stations
pypandora.stations[0].play(True)
The rpcs server can be started with python -m "pypandora.rpc_server", by default it listens on port 8123
Mark Rogers has written a kickass web frontend to control the rpc server from your browser.