Making salt.modules.logrotate python3 compatible