add optional output object for minibar / docu

this commit implements a way to redirect minibar output to something
other than sys.stdout like for example sys.stderr.
This comes in handy when stdout is used in the program for redirection