python script for generating ancillary files