title: Why unwrap an openAI gym?
body: <p>I'm trying to get some insights into reinforcement learning while using openAI gym as a learning environment. I do this by reading the book <em>Hands-on reinforcement learning with Python</em>. In this book, some code is provided. Often, the code doesn't work, because I have to unwrap it first, as shown in: <a href="https://stackoverflow.com/questions/52040325/openai-gym-env-p-attributeerror-timelimit-object-has-no-attribute-p/53819171#53819171">openai gym env.P, AttributeError &#39;TimeLimit&#39; object has no attribute &#39;P&#39;</a></p>
  
  <p>However, I personally am still interested in the WHY of this unwrapping. Why do you need to unwrap? What does this do exactly? And why isn't it coded like that in the book? Is it outdated software as Giuliov assumed?</p>
  
  <p>Thanks in advance.</p>