After changing logging method and finding example code on pyhook website, no longer using borrowed code.