Turn-table scripted view port movement

 From:  Ambimind
5644.1 
I wonder how i can script view port movement, so that by pressing a shortcut I can have the 3d view rotate around its current center(in increments)?
Atm I'm doing this by hand, to produce frames for simple turn table style animations(along with a screen capture tool).


Thanks.