This is the property you are after: Username Property
Most boilerplate Python templates have an app = … line. As such once you set your template to include that all you need to do is set out to app.Username and you are done. There may also be a few custom nodes for this (Archi-Lab comes to mind).