make replication.py pep8 correct