Updated PySoundGenerator