added .keys() to pulse_series iteration
switched back to oldstyle module argument passing