implemented the whole vocoder in Python