Updated replay.py and replay.sh