Is your idea like mine ? (Here) I think you can either use a superclass or a class decorator to register the tag