with open('/pythonwork/thefile_subset11.csv', 'wb') as outfile:
    writer = csv.writer(outfile)
with open('/pythonwork/thefile_subset11.csv', 'w', newline='') as outfile:
    pass
CSV file written with Python has blank lines between each row