making datacardProduction.py more amenable to batch submission