I have a tuple of tuples from a MySQL query like this:
T1 = ((\'13\', \'17\', \'18\', \'21\', \'32\'),
(\'07\', \'11\', \'13\', \'14\', \'28\'),
If it's only a tuple of tuples, something like rows=[map(int, row) for row in rows]
will do the trick. (There's a list comprehension and a call to map(f, lst), which is equal to [f(a) for a in lst], in there.)
Eval is not what you want to do, in case there's something like __import__("os").unlink("importantsystemfile")
in your database for some reason.
Always validate your input (if with nothing else, the exception int() will raise if you have bad input).