Hello @finetjul,
Are you trying to compose existing ITK filters or use some filters and add custom steps at some point in the processing? If you are simply trying to compose filters together, I suggest you take a look at the ITK Python pipeline
class for which I wrote an example here. Note that you may already have tried that since I wrote this example as an reply to one of your questions.
If you need to add custom steps in your processing, you could try to still use this class but combine it with an ITK Python templated_class
object.
If you are looking at actually fully writing a filter from scratch in Python, I cannot think of a good example right now, but if I think of one, I will add it here.