Script now does:
Parsing modules directory, extracting module names, list of SPI_ADDR_xx parameters and their name.
Going over .CSV file extracting actual list of instances, taking note of parameter and SPI_ADDR_xx overrides.
Calculating number of SPI addresses and from there the number of SPI address bits.