There are options when saving the HDA as to what compression is used. So if a different compression is used, the section won't be called "Contents.gz". I think it's best to first check out what sections are actually available in your HDA with print(n.type().definition().sections()).
The issue here is that for whatever reason the hou.HDASection.contents() functions can't take its arg as a keyword argument, despite the docs saying so. Passing the enum directly will work