Fix for datetime filters now working on Python 2.

Since 0.0.9, which introduced Python 3 support, datetime filters (?where) were
not working on Python 2.