This will get expensive. I'd say to create a list of strings and then build the full SQL string at the end like this:

```python
sql = "UPDATE qiita.{0} SET {1} WHERE study_id=%s".format(self._table, ' '.join(values))
```
The SQL will be easier to read.