add just below the procedure declaration 'global t2' as you're referring to a global variable ...
More specifically, *modifying* it. Just referring to it doesn't require a "global" declaration...
-Peter -- http://mail.python.org/mailman/listinfo/python-list