Fix timezone aware date comparison in real-time mode

Strip trailing whitespace
Merge branch 'master' of github.com:prelert/engine-python