Making salt/log/handlers/logstash_mod python3 compatible