python implementation: add initial phase-locking metronome design