[SPARK-2627] check that pep8 downloaded fine

Don’t just assume curl got the file alright. Check and exit properly if
there were any problems.