I\'m trying to generate different levels of api for the different tags in xml. I have to do it in flask.