[refactor] Update flash_algo_gen.py from my master branch. This completes the structure but still needs some parsing intelligence to get the name and such.