I currently have a python-cgi script that extracts data from a mysql table. I would like to save this data as a string and send it to a recipient via email. I know how to send email using the smtp lib, but what I do not know his how to save a portion of the page as a string. Any pointers?