I would like be able to run a python script upon authentication ( basically whenever the user has to supply a user name and password) to do some logging and housekeeping chores -- is this possible? Any clues where to look for strategies/code?