How do you handle API rate limiting when writing automation scripts to interact with cloud providers?