Update replicate.py

This code is replaced by schema