I'm writing a script that will open up tmux in my terminal and split the windows. To do that I need to send tmux, Ctrl + b and % to the terminal.
def make_win():
subprocess.call('tmux', shell=True)
subprocess.call('Ctrl', 'b', shell=True)
subprocess.call('%', shell=True)
The 'Ctrl' and 'b' keys need to be held down/clicked at the same time.