Update reverse.py