I started to love the Python black formatter and I want all my code on StackOverflow to be formatted like that. So I wanted to go over the answers and apply black / blacken-docs, check if anything went wrong and apply the change if it looks fine. I would execute that on my machine.

I'm currently struggling with the last step: Editing my answer / uploading the edited answer. How can I do that?

(In case you're interested: The current [work in progress](https://github.com/MartinThoma/algorithms/blob/master/Python/stackexchange/main.py#L40))