't.clone() returns a new pipeline template with identical
initial state as the current one.'

def clone(self):

    t = Template()
    t.steps = self.steps[:]
    t.debugging = self.debugging
    return t
