Fix python indentation and code folding