Why use lambda here? Can you just do:

```
string_input = '<input type="text" name="pyqi_%s" />' % i.Name
```

etc...