Running flexget Python script in Ubuntu, I get an error:
$ flexget series forget \"Orange is the new black\" s03e01 Traceback (most recent call last): File \
This can happen if you have Python 2.7 .pyc files and you try to load them using Python 3.5. In my case this was a third-party tarball that erroneously included pre-compiled Python 2.7 .pyc files along with the source code.