Making salt.modules.mod_random python3 compatible