Making salt.modules.hosts python3 compatible