Format and convert Python docstrings and generates patches