I don't see any subclasses of Flower in the code.

isinstance should do the trick