cross platform, I've looked for this before and haven't found, so may be useful to some people:
Cybso. Blog Archive Create screenshots of a web page using Python and QtWebKit
Cybso. Blog Archive Create screenshots of a web page using Python and QtWebKit