title: Dropbox Python SDK SSL error
body: <p>I am learning how to use the Dropbox Python SDK. However, I run into a problem when I try to generate my request token. Here is the code I am using (note that I have replaced my actual app key and secret with APP_KEY and APP_SECRET here, but I used my actual app key and secret when I try it out.)</p>
  
  <pre><code>from dropbox import client, rest, session
  APP_KEY = 'APP_KEY'
  APP_SECRET = 'APP_SECRET'
  ACCESS_TYPE = 'app_folder'
  print 'Creating session object'
  sess = session.DropboxSession(APP_KEY, APP_SECRET, ACCESS_TYPE)
  print 'Session created!\nCreating request token'
  request_token = sess.obtain_request_token()
  print 'Created request token!'
  url = sess.build_authorize_url(request_token)
  print url
  raw_input()
  access_token = sess.obtain_access_token(request_token)
  client1 = client.DropboxClient(sess)
  print client1.account_info()
  </code></pre>
  
  <p>I had the program print out messages as it was creating the different objects so that I could see where the error occurred. This is the output:</p>
  
  <pre><code>aaron@Aarons-Ubuntu-Computer:~/Twisted$ python example.py
  Creating session object
  Session created!
  Creating request token
  Traceback (most recent call last):
    File "example.py", line 8, in &lt;module&gt;
      request_token = sess.obtain_request_token()
  File "/usr/local/lib/python2.7/dist-packages/dropbox-1.4-py2.7.egg/dropbox/session.py", line 160, in obtain_request_token
  response = rest.RESTClient.POST(url, headers=headers, params=params, raw_response=True)
  File "/usr/local/lib/python2.7/dist-packages/dropbox-1.4-py2.7.egg/dropbox/rest.py", line 140, in POST
    return cls.request("POST", url, post_params=params, headers=headers, raw_response=raw_response)
  File "/usr/local/lib/python2.7/dist-packages/dropbox-1.4-py2.7.egg/dropbox/rest.py", line 64, in request
    conn = ProperHTTPSConnection(host, 443)
  File "/usr/local/lib/python2.7/dist-packages/dropbox-1.4-py2.7.egg/dropbox/rest.py", line 214, in __init__
    self.cert_reqs = ssl.CERT_REQUIRED
  AttributeError: 'module' object has no attribute 'CERT_REQUIRED'
  </code></pre>
  
  <p>I had tried using this code before, and I didn't experience this problem. I have also removed the Dropbox SDK and reinstalled it, with no result. What is causing this problem, and how can I fix it?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After adding Kannan's code, the output looks like this:
      <code>Ready</code>
       <code>Generating session</code>
  <code>Session Generated!</code>
  <code>Generating request token</code>
  <code>['Certificate', 'CertificateOptions', 'CertificateRequest', 'Client', 'ClientContextFactory', 'Connector', 'ContextFactory', 'DN', 'DefaultOpenSSLContextFactory', 'DistinguishedName', 'KeyPair', 'Port', 'PrivateCertificate', 'SSL', 'Server', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'implementedBy', 'implements', 'implementsOnly', 'interfaces', 'supported', 'tcp']</code>
  Then I get the error. I have tried re-created my SSL certificates with no luck.</p>