Making salt.daemons.masterapi python3 compatible