initial version from blog article

see
http://www.timecockpit.com/blog/2012/12/17/Debugging-and-Interactive-Development-of-Time-Cockpit-Python-Scripts