updated tutorial.py to log function info