Inconsistent use of msgdata['to_list']
There are a few places where msgdata['to_list'] is referred to by 'tolist'. This is a typo and needs to be fixed.
There are a few places where msgdata['to_list'] is referred to by 'tolist'. This is a typo and needs to be fixed.