title: numpy array to list conversion issue
body: <p>For some reason, <code>evalRow(list(array([0, 1, 0, 0, 0])))</code> and <code>evalRow([0, 1, 0, 0, 0])</code> give different results. However if I use <code>magicConvert</code> (here to debug this) instead of <code>list</code> to go from numpy array to list it works as expected:</p>
  
  <pre><code>def magicConvert(a):
    ss = str(list(a))[1:-1]
    return map(int, ss.split(","))
  
  # You don't actually need to read these functions, just here to reproduce the error:
  from itertools import *
  def evalRow(r):
    grouped = map(
      lambda (v, l): (v, len(tuple(l))),
      groupby(chain([2], r, [2])))
    result = 0
    for player in (1, -1):
      for (pre, mid, post) in allTuples(grouped, 3):
        if mid[0] == player:
          result += player * streakScore(mid[1], (pre[0] == 0) + (post[0] == 0))
    return result
  
  def streakScore(size, blanks):
    return 0 if blanks == 0 else (
      100 ** (size - 1) * (1 if blanks == 1 else 10))
  
  def allTuples(l, size):
    return map(lambda i: l[i : i + size], xrange(len(l) - size + 1))
  </code></pre>