Added finalize to PySoundGenerator