Python log handler for shipping logs via TCP and UDP formatted as json to logstash