Here is my Python wrapper for Lua libs that are used in WeakAuras2 and wago.io for decode/encode functions
Working as of the current retail version, shouldn't be broken until Weakauras changes its encoding implementation
GitHub - geexmmo/python-weakauras-tool: Tool to decode/encode weakauras string to JSON and back