Making salt.modules.omapi python3 compatible