Retry failed pip installs in case of network errors

See http://about.travis-ci.org/blog/2013-05-20-network-timeouts-build-retries/