using 'with open:' to limit open file context
proper log of host to be resolved
input database arguments the python way
prototype of javascript injection; when javascript on, appends the string 'new text' at the end of 'body'