Making salt.modules.rest_sample python3 compatible