def add_to_sql(curs, table, info):
    placeholders = ', '.join((['%s'] * len(info)))
    columns = ', '.join(info.keys())
    sql = ('INSERT INTO %s ( %s ) VALUES ( %s )' % (str(table), columns, placeholders))
    curs.execute(sql, list(info.values()))
def add_to_sql(curs, table, info):
    placeholders = ', '.join((['%s'] * len(info)))
    columns = ', '.join(info.keys())
    sql = ('INSERT INTO %s ( %s ) VALUES ( %s )' % (str(table), columns, placeholders))
    curs.execute(sql, list(info.values()))