Making salt.modules.grub_legacy python3 compatible