Making salt.modules.rest_service python3 compatible