title: convert curl to python
body: <p>I wonder if it is possible to convert the following OpenFIGI API command into python:</p>
  
  <pre><code>curl -v -X POST 'https://api.openfigi.com/v1/mapping'   \
       --header 'Content-Type: text/json'             \
       --data '[{"idType":"ID_WERTPAPIER","idValue":"851399","exchCode":"US"}]'
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>import requests
  data = {["idType":"ID_WERTPAPIER","idValue":"851399","exchCode":"US"]}
  r=requests.post('https://api.openfigi.com/v1/mapping', headers={"Content-Type": "text/json"},data=data)
  </code></pre>
  
  <p>But r gets the value "Response [400]". According to the intro page <a href="https://www.openfigi.com/api#introduction" rel="nofollow">https://www.openfigi.com/api#introduction</a>, this identifies the scenario that     "The request body is not an array". I am really new to curl, any suggestion will help. </p>