Actually, if you get the url_of_the_python_script in the src attribute of the img element, then the browser (if it is a graphical browser) will call the python script. <img src="/url/of/my/script" alt="my image in session object" /> Troy