I like using python-shell-send-buffer, but I am annoyed of looking for the command's buffer.
So I'm looking for a function, that recognizes whether the buffer is already displayed. Since I use two windows on one frame, when coding in python, it would be nice if the function also checks if there are already two windows on the current frame. If not, it has to split the frame horizontally. Additionally I want the buffers to be automatically positioned, as I'm used to have my source code on the left side and the python shell with the output on the right side.