How can I iterate over an object and assign all it properties to a list
<p>From</p>

<pre><code>a = []

class A(object):
    def __init__(self):
        self.myinstatt1 = 'one'
        self.myinstatt2 = 'two'
</code></pre>

<p>to</p>

<pre><code>a =['one','two']
</code></pre>
