title: AttributeError: 'map' obejct has no attribute 'index' (python 3)
body: <p>I am getting above run time error, when I am trying to run an old python codebase into python3. The code looks like below.</p>
  
  <pre><code>index = map(lambda x: x[0], self.history).index(state)
  </code></pre>