refactor nappl into one py file per class