Use batch interfaces, and set num_retries on each execute call.
Merge pull request #2 from tmatsuo/batches

Use batch interfaces, and set num_retries on each execute call.