I want to kill a process and I get its id with:
pgrep -f \"python myscript.py\"
I would like to call
kill -s SIGINT
Try the backtick operator for evaluating a sub-command
kill -s SIGINT `pgrep -f "python myscript.py"`
(untested)