todo_items = todo_folder.Items

def print_encoded(s):
    print(s.encode(sys.stdout.encoding, 'replace'))
for i in range(1, 1 + len(todo_items)):
    item = todo_items[i]
if item.__class__.__name__ == '_MailItem':
    print_encoded('Email: {0}. Due: {1}'.format(item.Subject, item.
        TaskDueDate))
elif item.__class__.__name__ == '_ContactItem':
    print_encoded('Contact: {0}. Due: {1}'.format(item.FullName, item.
        TaskDueDate))
elif item.__class__.__name__ == '_TaskItem':
    print_encoded('Task: {0}. Due: {1}'.format(item.Subject, item.DueDate))
else:
    print_encoded('Unknown Item type: {0}'.format(item))
Получить список дел Outlook с помощью Python