Update core.py

This is the proposed fix for issue #50 - Error with Remote Syslog.
Merge pull request #51 from ericl42/patch-1

Update core.py