Note that the "path" will include a "~" before your shared username. Look at the "~" before "orourke" on the class webpage, or the "~" before "jcardell" on this page. This is part of the Unix naming convention. You will all have the "~" before your shared username (given out in lab as stated above). Then, following the ~username, there will be a "/" followed by your html filename (including the .html extension).
With all this said, I suggest taking time, sooner rather than later, to clean up your HW8 files (the Python code itself and also the html file it writes) as needed, so you can use it to build upon for HW9. For HW8 it was OK to have the bulk of what you were writing be in one grand writeHTML() function. For this week I do want you to separate each different concept, item or section into a different function.
Thus, if your image and hypertext link are connected conceptually (e.g., a figure of Kermit and a link to Kermit), then it is fine to have them in one function. However, it will NOT be ok to also have the list(s) you are now adding also in that same function even if all are about Kermit. Divide and conquer - keep functions short, clear and to the point (to one point).
...And you might also want to take the time now to make everything visually neat and add comments to clarify what you are doing.
You can put whatever content you want into your list(s), alone, nested, or otherwise. You MUST USE A LOOP in your Python code to enter the list items (the "li" tags) into the string to be written to your html file. Depending upon what you want to put in your list, you would do this different ways. For one example, if you were to list all the zodiac signs on your webpage, then you could create a Python list with those signs (as strings) in the list, and then loop through your Python list as you create each HTML list item.