Add submodname arg to generate_submodules