Limit Permissions Based On "User Status" - Python

How exactly do I pull in the tags so I can parse and use them?

Edit: Looking at chat-samples, I see the on_welcome method and how it requests for the capabilities. Once I add that to my class, how/where would I parse the response so I can check if a viewer is a sub or mod?

Sorry for all the questions, I’m a bit new to Python itself as well as IRC bots.