I am using an API to call specific information from a website. I need to be able to parse through the list to utilize the functions. Example:

```
list = ['doThis','doThat']
for item in list:
    sampleobject.item

```

The issue is when I use this, I get an error saying "sampleobject has no attribute 'item'". 

Is there a way that I can pull the quote out of the string to do this?