Remove debug statements, refactor.

Removed debug statements from multipart message handling code.
Refactored code to avoid multiple statements on a single line.