Here is a neat library that I wish was around 5 years ago:
Here is the blog announcement for the project. Go check it out.
It’s only for python, but I suspect you’ll see something similar to this show up for every major language pretty soon. In fact, in the blog comments they even mention a similar project in Ruby called Ariel that was sponsored by Google’s Summer of code.