python-shell-prompt-regexp

python-shell-prompt-regexp is a variable defined in `python.el'.
Its value is
">>> "


Documentation:
Regular expression matching top level input prompt of Python shell.
It should not contain a caret (^) at the beginning.

You can customize this variable.