Add quiet option

This patch sets the sys.stdout stream to a StringIO object when the --quiet (-q) flag is set. This prevents stdout from writing to the screen.