WebAgg: flush stdout after printing, redirect "stopped" message to stder...

...r

Without flushing, the message can be displayed too late. KeyboardInterrupt message should be printed to stderr.
We are using from from __future__ import print_function at the top so I don't think there is any need for using six here