Here is the code -
import pymysql
f = open(r"class_labels.csv","r")
fstring = f.read()
flist = []
for line in fstring.