work_scheduler.py: Made writer funtion to always write str. Also improved handling of global variables in WorkWeek class.