dxpy: 503/Retry-After responses do not count against max_retries

Add some assertions to clarify the control flow.