Use pip to pre-fetch python dependencies.

Reviewed at https://reviews.apache.org/r/28915/