Honest question, since my days with OSX are far behind: why would I want to do this in Applescript if the only thing this does is start the python http server? In other words, what advantage does it offer over just directly running the command?
edit: now that I think about it, I did use "bitbar" for a while which is actually a little bit more powerful still. I can't find it any more but this looks similar - https://github.com/matryer/xbar#get-started