def split_window(vertical=True, horizontal=False, command=None):
    option = "-v" if vertical else "-h"

    if command:
        option += " \"" + command + "\""

    call("split-window " + option)
new pane and exec command.
dataset/ETHPy150Open ton1517/ttop/ttop/tmux.py/split_window