Should be:
```
qry = 'REPAIR TABLE %(dbname)s.%(dbtable)s'
_execute(cur, qry, {'dbname': s_name, 'dbtable': s_table})
```
Interpolating beforehand can allow injection attacks. It's better to have the mysql library do that for you, as it was designed. `_execute` was written to handle this.