A faster and more secure way to get the user running the process is:
````
import getpass
user = getpass.getuser()
````