In Python3, string doesn't have a "decode" method. I will need to find a proper fix for this, but for now, the workaround seems to do the trick.