Fix how stdout is redirected in plotpages 

so it works better from IPython notebooks.

Thanks to @ahmadia at HYP3.