Batch Processing In Python Example Code