Add a clone method a flask application.