A Google search revealed some good answers but they don't exactly solve my problem.
For running a python script after logging out from SSH the answer is: https://stackoverflow.com/questions/2975624/how-to-run-a-python-script-in-the-background-even-after-i-logout-ssh
To run python in the background in Windows, the answer is: https://stackoverflow.com/questions/783531/how-to-run-a-python-script-in-the-background
However, what I want to do, for example, is to print the name of the user currently logged into the computer. The way I imagine solving the problem is to log in as an admin (I have root access), run a suitable python script which regularly updates an html file on a server, and then access the html file whenever I want after logging out from the computer as an admin.
Update 1: The system has Windows XP. So I can't use scheduled tasks to run the script every few minutes.