Update ReplicationFactory.py