Returning values from .writerow() and .writerows()