import json import datetime now = datetime.datetime.now() def Reset(): data = [] data.append({ \'year\': now.year, \'months\': [] })