I have to convert the followin code written in Python 2 to Python3:
with open(\'C:/path_to_csv_file/fold1_1.csv\', \'wb\') as csvfile: spamwriter = csv.wr