Update redirect.py

Add global stop