The idea here is to give feedback to the user, to let them know that their action has completed successfully. The set_tags() function shouldn't return until it gets a 200 OK status back from Amazon, and in theory, Amazon shouldn't be returning a 200 OK status until the operation has completed successfully. So by the time we get to get_tags(), it should be able to return the correct set of tags.