Ehhh..... CardHybrid is a _stock_ ship, meaning it doesn't have a plugin file.
Btw, the code in the quotes, replace it with code and it will also work. Besides, there isn't anythng wrong with it as it is.
_But_! In my copy of the Cardasian.py file, from the same location, it doesn't have those lines, in fact, it's not a static list.
So, to remove it from both the ship list and the RDF would seem to be the following (assuming you have the recent SubMenu mod):
import Foundation
Foundation.ShipDef.CardHybrid.__dict__["Do not display"] = 1
Foundation.ShipDef.CardHybrid.menuGroup = "Other Ships"Put that in a file in scripts/Custom/Ships/