Rename create_generic_lpu.py, move contents into functions to facilitate parameterization.