Return of type dictionary assigned as list
<p>I'm using a Labjack for some Digital I/O with python 2.7.3 32bit and encounter the following:</p>

<p>This is the labjack u6 function I'm calling:    </p>

<pre><code>    class PortStateRead(FeedbackCommand):
    """
    PortStateRead Feedback command

    Reads the state of all digital I/O.

    &gt;&gt;&gt; d.getFeedback( u6.PortStateRead() )
    [ { 'FIO' : 10, 'EIO' : 0, 'CIO' : 0 } ]
    """
    def __init__(self):
        self.cmdBytes = [ 26 ]

    def __repr__(self):
        return "&lt;u6.PortStateRead()&gt;"

    readLen = 3

    def handle(self, input):
        return {'FIO' : input[0], 'EIO' : input[1], 'CIO' : input[2] }
</code></pre>

<p>The function is returning (what appears to be) a dictionary, but when I assign the return to a variable it is assigned as a list.</p>

<pre><code>    &gt;&gt;&gt; import u6
    &gt;&gt;&gt; handle = u6.U6()
    &gt;&gt;&gt; x = handle.getFeedback(u6.PortStateRead())
    &gt;&gt;&gt; x
    [{'CIO': 15, 'FIO': 255, 'EIO': 255}]
    &gt;&gt;&gt; x['FIO']
    Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt;
      TypeError: list indices must be integers, not str
</code></pre>

<p>Assigning x[0] to a new variable assigns as a dictionary</p>

<pre><code>    &gt;&gt;&gt; y = x[0]
    &gt;&gt;&gt; y['FIO']
    255
</code></pre>

<p>Can someone explain this behavior to me please?</p>

<p>In the example call in the docstring the function returns a list, so I can assume this behavior is normal.</p>
