How to Automate Payload Sending and Message Storing Using Python and Webhooks on a Local Machine?

Posted thread to Discourse: How to Automate Python and Webhooks on a Local Machine for Storing and Retrieving Message Payloads?