Update redirect.py

Legoktm's version