Making salt.modules.nginx python3 compatible