In my following code I am trying to append  to every start and end of the value so that I can perform SQL insert operation directly after running my python script. 

Following is code

```
print today,","+ (a['href'] if a else '`NULL`')+",", (a.string if a else 'NULL, NULL')+ "," +",".join(re.findall("'([a-zA-Z0-9,\s]*)'", (a['onclick'] if a else 'NULL, NULL, NULL, NULL, NULL, NULL')))+","+ ", ".join([project] + area),","+pdates+""

```

Here is my whole [code](https://github.com/Venkateshwaran/ScreenScraping/blob/2e149c0b7fb693fc60abef40b39bc3cdc0693333/velachery.py)

And the [output](https://github.com/Venkateshwaran/ScreenScraping/blob/2e149c0b7fb693fc60abef40b39bc3cdc0693333/final.sql) I am getting . Hope I am clear about what I want.