Writing your payload retrieval and delivery in Python