Ah. Ok. I was thinking a short bash script that just did these 4 things, and took as arguments {{ webapp }} and {{ python }}.

Either way, it's fine.