Fix 'plot' nameclash with pylab
Make api_docs print return values of command functions, instead of having prints as side-effects in functions.