Partially revert "Simply use the stdlib wrapper and replace regex"

This partially reverts commit 36ba0209d7c394cd56f92e032262db906ebfb8fc.
This way we still have the drop_whitespace option with Python < 2.6.
Use custom textwrap module on Python < 2.6