[refactor][flash_algo] Updating flash_algo_gen.py to take parameters so it can be called during the build process.