This is the auto-TA pulse module, in python.