title: Python, add variable index to dbm.dumb module
body: <p>I'm having issues adding an index variable to dbm.dumb. What i mean by index variable:</p>
  
  <pre><code>var = b"string",b"string_one",b"string_two"
  var[0] #being an index variable 
  </code></pre>
  
  <p>Now when I try and add to it using the following code:</p>
  
  <pre><code>database = dbm.dumb.open(z ,'c')
  
  
  database["item 1"] = x[2],y[2]
  database["item 2"] = x[0],y[0]
  database["item 3"] = x[1],y[1]
  </code></pre>
  
  <p>and i get the following error</p>
  
  <pre><code>TypeError: values must be bytes or strings
  </code></pre>
  
  <p>I have tried casting the variables so they are strings but it wont let that go through. I'm stuck.</p>