Update core.py

This is the proposed fix for issue #50 - Error with Remote Syslog.