Added abstraction to PySoundGenerator