Fix indentation and whitespace issues in Python scripts