core functions and classes for building a Spike2 Talker in Python