created a batch writer class
Batched writer seems to save about 5 seconds per 1MM records
removed some imports;
added some comments;
refactored LOG instance and script Constants
tested on linux, works