List of users and students in a course

Based upon Steven Cain Links to an external site.'s submission to https://community.canvaslms.com/thread/9885 Links to an external site. I augmented my  Download list_students_in_course.py

 to create  Download list_users_in_course_with_students_email.py

This program creates a second sheet ("Students") of just those enrolled in the course as students. This list includes the student's e-mail  address. I decided to include information about alternative communication channels, so these are also listed as shown below:

comm-channel-with-twitter-20170111-cropped.png

Now I removed Twitter as one of my registered services. The resulting state is:

comm-channel-with-twitter-removed-20170111-cropped.png

As one case see the twitter handle has been replaced with "Twitter handle", but the workflow state is still set to "active" - which to me seems to be incorrect. I would have expected the state to be "inactive", however, it seems that the only two values are 'unconfirmed' and 'active'. There should be a third value added 'inactive'.