Added event based handling of hashquery changes

- session id can be passed via parameter
- time range can be passed via parameter
Fixed conversion to localtime
Fixed PEP8 issue
Fixed TypeError in file stat producer