// TODO: this is not future-proof, should use anthology.util library functions
aa_id = ""
if len(url) == 6:
aa_id = "{:02d}".format(int(paper.attrib["id"]))
else:
if len(url) == 5:
aa_id = "{:03d}".format(int(paper.attrib["id"]))
After Change
for paper in v.findall("./paper"):
//// Individual Paper Data
paper_id = paper.attrib["id"]
if paper.find("./url") is not None:
url = paper.find("./url").text
else:
if is_newstyle_id(full_volume_id):