KeyError: 'No such residue: 129:A'
I have checked the pdb file and the residues do indeed exist!
They do, but 1) the restraint acts on the model, not the template, and
2) at this point in your script the model hasn't been generated, since
you haven't called make() yet. To add additional restraints, you need to
subclass automodel and add the restraints in the special_restraints()
method: