from experience, google will ban you fast if you keep downloading all 10 pages while results are less than 1000, so operations needs to be synchronized.
rotate headers& waiting on every pages are useless,you can check this by searching for the same phrase with firefox after getting 503 with...