mainloop.py: separate parser from streaming stuff.
mainloop.py: separate parser from streaming stuff.

shineyear/catawampus,ultilix/catawampus,ankurjimmy/catawampus,pombredanne/catawampus,ultilix/catawampus,ankurjimmy/catawampus,pombredanne/catawampus,shineyear/catawampus