Fix for traceback on OSX.  Fixes Bitmessage/PyBitmessage#401
Merge pull request #405 from grant-olson/fix_for_401_traceback_in_log_output

Fix for traceback on OSX.  Fixes Bitmessage/PyBitmessage#401