Remove unused import
Remove duplicate import
Rename variable for clarity.
Reindent using textwrap
Extract _patch_usage and re-implement as a context manager.