added 2 python scripts

user.py defines a user class
functions.py includes some possibly useful functions