How do you handle rate-limiting and API pagination when writing automation scripts to pull data from cloud providers?