`outline-minor-mode' fixed

See http://debbugs.gnu.org/17796

Resp. patch was provided by Fabian F. Gallina for emacs-24 branch, r117275
`py-beginning-of-statement' stop before prompt, lp:1331953

fixed
`py-shell', `py--buffer-name-prepare' fixed

tests added