Automatic formatting of Python code