Couple of things

`isinstance(flavor, type)` is incorrect, my bad. But so is checking for `type(flavor) is type` since in Python 2 not all classes are instances of `type` they are their own `classobj` type.

No need to worry about what subclassing `type` entails, just do this:

```python
issubclass(flavor, Flavor)
```