Making salt.modules.img python3 compatible