[Python] Trim Whitespace Using Pil