Let MySQLdb do the entire argument substitution. In this case, the expected argument, values, should be the sequence (1,2,3), rather than the string '1,2,3':
query = """SELECT id, name, image_id
FROM users
WHERE id IN %s
"""
values = uids
results = dbc.getAll(query, [values])