'Returns new command with replaced fields.
:rtype: Command'

def update(self, **kwargs):

    kwargs.setdefault('script', self.script)
    kwargs.setdefault('stdout', self.stdout)
    kwargs.setdefault('stderr', self.stderr)
    return Command(**kwargs)
