Migrate Python client code from https://github.com/jordanhalterman/redmq.