One more review of tasks.py now that program appears to be working as expected. Changed references in the SmartScheduler class to refer to the message instance attribute of the class.