with open('/path/to/input/file') as infile:
    reader = csv.reader(infile, delimiter=';')
for row in reader:
    if len(row[2]) <= 10000 and len(row[3]) <= 10000:
        pass
how to truncate file by number of characters in a specific column