check that asy stdout is non-empty before printing

In Python 3+ will print b'' or similar to notebook.
Minor spacing corrections / typo corrections.