PyIndex fixed
Window size in python-mode, lp:1266169

Menu added:
Python/Customize/Switches/Display/py-keep-windows-configuration

Adjusting output-buffers size works that way for me:

M-x python RET

switch to py-shell resp. output-buffer and

M-x shrink-window-if-larger-than-buffer RET
it's on C-x -

Than M-x customize-variable RET py-keep-windows-configuration RET
to `t' or 'force

Alternatively switch for session in menu
Python/Customize/Switches/Display/py-keep-windows-configuration

The following run should keep the window small, resp. enlarged.

In return did not implement an auto-resize, as the
output-buffer will remain smaller only the first
two-three times. Afterwards it's on half-screen anyway.

If more people want that, please re-open the issue.