Cleanup: Use `is` for type comparison
Cleanup: Use cleaner `for...else` to set `filter_` (renamed from `filter`, which conflicts with builtin function)
Cleanup: whitespace
Merge pull request #496 from oxtopus/clamodel-cleanup

Clamodel.py cleanup