Have a look at pprint (or this more tutorial-style writeup). You may need to pull the actual attribute. Good luck!