pep8-ified scripts/replace.py

Change-Id: Id1aed3b2dbb748dde4ec2d672a86ee8ecd6303b7
Merge "pep8-ified scripts/replace.py"