added watchdog to python wrapper