support filtering on booleans by normalizing filters to python booleans
fix for enum handling broken in Python 2 by bbb4b5e2f4974e30da3091bf4bb9d784465daf47