Edit: envelope.py