It would be nicer to use pip's logging system instead of sys.stdout