title: How to pass key to datastore object
body: <p>I have done this before and it worked. But today, it’s not working.</p>
  
  <p>Here is my entity</p>
  
  <pre><code>class MyPage(ndb.Model):
    page = ndb.TextProperty(required=True)
  </code></pre>
  
  <p>Then to create an entity I do</p>
  
  <pre><code>myPage = MyPage(id=“some_id_string”)
  </code></pre>
  
  <p>But this line keeps throwing an exception</p>
  
  <pre><code>TypeError: __init__() got an unexpected keyword argument id
  </code></pre>
  
  <p>So I try</p>
  
  <pre><code>myPage = MyPage(key_name=“some_id_string”)
  </code></pre>
  
  <p>and I got the same error.</p>
  
  <p>So how do I pass a custom key to my datastore entity in python?</p>