I have a python editor where the user is entering a script or code, which is then put into a main method behind the scenes, while also having every line indented. The proble
textwrap.dedent from the standard library is there to automatically undo the wacky indentation.