Remove duplicates on pip.main usage.

Everytime pip.main was used, it added sys.stdout to a logger list, so it
created duplicates.
Reset this list after each call.