I don't know Python, but I think such screenshots generation, using Python or not, will only be a temporary solution, as a proper implementation at the server-side is the best option in the long run, since geany already has its web site, and that is where these things belong to.