added pulse.py - contains threading routines