Url shortening with Python

Hi,
Does anyone happen to have a good url shortening function for Python?  I
am working on a Twitter plugin for the Linux media player Rhythmbox.  I
would like for the url shortening service to be bit.ly to stay in
Twitters lead, but any url shortener will do. 
Thanks
Storm

Follow me on twitter:
http://www.twitter.com/stormdragon2976
My blog, Thoughts of a Dragon:
http://www.stormdragon.us/
For general Linux discussion:
http://www.freelists.org/list/accessiblelinux
What color dragon are you?
http://quizfarm.com/quizzes/new/alustriel07/what-color-dragon-would-you-be/ 

Other related posts: