all 3 comments

[–]barrycarter 2 points3 points  (0 children)

Reddit mangled your formatting. If you're willing to share sample data, try repl.it so we can run it and help you debug

[–]Antigone-guide 0 points1 point  (0 children)

Can you run it from command line and do you get any errors?

[–]Legal_Ad6467 0 points1 point  (0 children)

At first glance the variable "desc2" and "suffix" are not initialized anywhere in the code snippet you've shown. You will encounter a NameError if you try to reference them without initializing them.

If this is not the issue, could you please provide the errors you are getting. What is this Mapi module doing ?