How do you handle API rate limits, retries, and exponential backoff when writing automation scripts that interact with third-party cloud APIs?