Use split along space. Then use list_after_split[0][0:2] as the first name and list _ after _ split [1] [0:1] as the last name. Then connect these two lines.
You should put all the templates in the application, or put all the templates of the project in a separate directory.