https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58962
--- Comment #4 from Bruce Merry <bmerry at gmail dot com> --- Incidentally, the workaround I have been using is to just run the script through 2to3. Since Python only tells you things have gone wrong when you execute the code I can't guarantee that this fixes everything, but I've yet to hit any further Python 2 vs 3 issues after doing this.