Port this to Python because I can't deal with this jq and sed madness