update autocapture.py