Fill in the session cookie in a file called aocYY/secret.py, as session='cookieid'. Find the session cookie id in Firefox by logging in to advent of code, then opening the inspector tools by pressing shift + F9 and find the session cookie under Storage -> Cookies.
In the folder for each year, run setup.py to create a folder for the day, cd into the folder and run the created python file.