Move Hint API calls to hint_rest_api.py