title: Drive-SDK Python code not GETting drive files by selected title words
body: <p>I need to pass a query to a function. It should be really simple! here is the code:</p>
  
  <pre><code>def get_file_ID(q):
    dump = drive_service.files().list(q=q, fields = 'items(mimeType,id,title,downloadUrl)').execute()
    fileItems = dump['items']
    for item in fileItems:
      try:
          if item['mimeType'] == "application/octet-stream":
            return item['id']
      except KeyError:
          print "No item of the required type, or item has been deleted"
          return None
  
  def lets_go_get(file_Id):
    f = drive_service.files().get(fileId=file_Id).execute()
    resp, content = drive_service._http.request(f.get('id'))
    if resp.status == 200:
        #print 'Status: %s' % resp
        return content
    else:
        print 'An error occurred: %s' % resp
        return None
  
  text = raw_input('Enter title search text: ')
  query = "title contains '" + text +"'"
  selectedFile = "'" + get_file_ID(query) +"'"
  
  print lets_go_get(selectedFile)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>   HttpError: &lt;HttpError 404 when requesting https://www.googleapis.com/drive/v2/files/%270BxDfMkL6x0wjMS03Nz.....Tk%27?alt=json returned "File not found: '0BxDfMkL6x0wjMS03.....MTU5NjQ0ZjdhOTk'"&gt;
  </code></pre>
  
  <p>But when i substitute the last call to 'lets_go_get' with the DIRECT fileID like this:</p>
  
  <pre><code>print lets_go_get('0BxDfMkL6x0wjMS03.....MTU5NjQ0ZjdhOTk')
  </code></pre>
  
  <p>then it works.  </p>
  
  <p>I can't see any difference between the two.  can anyone explain what I'm missing???  </p>
  
  <p>Many thanks.</p>