Fixed edge case of 1 sample in templates. Updated py files to use new erccpath variable.