Added a modulator class, which implements the python threading object.
TODO: link the output of a key to a modulator