I know there are some questions about this topic, but none seems to solve my issue. See this or this or this.
I\'m on Linux, Fedora21, and I\'m trying to enable per user
This sometimes comes up when you try to call other Python module methods from your cgi where you might have left some 'print' statements (perhaps for debugging). So scan your code for any 'print' statement, sometimes this fixes the problem easily.