An existing php script needs to be ported to python.
This small script runs a number of mysql queries to build a single page with several images. 2 variables are passed to the script. The images are stored externally. This task is just to rewrite the code in python but rather than display a page produce JSON for the displayable elements. The task is urgent. Familiarity with trac/svn would be good.
the attributes for each displayed image on the page are: