pep8 + unit tests

updated the tests based on new mock data + new event category
restclients import updates

Tired of seeing the deprecation warnings!