placeholders = ', '.join('?' * len(values))
sql = 'INSERT INTO Media ({}) VALUES ({})'.format(columns, placeholders)
cur.execute(sql, list(values.values()))
Python Sqlite3: INSERT INTO table VALUE(dictionary goes here)