I am running emacs 24 with the Inferior Python mode for the interpreter. See below for all the minor modes in effect. Basically the problem is that particular lines (say at the prompt) remain read-only even when I mark toggle "read-only-mode" and I can edit the rest of the buffer.
I am not able to figure out why this might be happening. I have tried toggle-read-only as well. It seems like something related with the font-lock or something else since the behavior happens only at the python prompt lines.
The buffer is running the following minor-modes.
Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
Column-Number Compilation-Shell Diff-Auto-Refine Electric-Indent
Electric-Pair File-Name-Shadow Font-Lock Global-Company Global-Ede
Global-Eldoc Global-Font-Lock Global-Semantic-Decoration
Global-Semantic-Highlight-Func Global-Semantic-Idle-Completions
Global-Semantic-Idle-Scheduler Global-Semantic-Idle-Summary
Global-Semantic-Mru-Bookmark Global-Semantic-Show-Unmatched-Syntax
Global-Semanticdb Ido-Everywhere Line-Number Mouse-Wheel Recentf
Semantic Shell-Dirtrack Tooltip Winner