Edit: capture.py