Apply Python tag fixup logic to Python files only