Python won't recognize object parameter : <pre><code>    def function(objectA_list):
         for objectA in objectA_list:
              str = objectA.attr1
</code></pre>

<p>objectA.attr1 is not recognized. objectA is an instance of a class in another file that I have imported. How do I "cast" objectA variable as an objectA so I could use access the underlying attribute?</p>
