Make 'pip search' support http proxy

I found I can't use pip search behind my company firewall using proxy. So I did the small changes. 
My English is poor. I wish there not be errors in my comments...