Get the current user's username

1
2
from System.Threading import Thread 
print Thread.CurrentPrincipal.Identity.Name