How to filter only Fabrication Transition pieces

Anybody can help me to filter only Transition pieces from the model by using python script?

image