title: Python websocket create connection
body: <p>I have this server</p>
  
  <p><a href="https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/websocket/echo_tls/server.py" rel="nofollow noreferrer">https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/websocket/echo_tls/server.py</a></p>
  
  <p>And I want to connect to the server with this code:</p>
  
  <pre><code>ws = create_connection("wss://127.0.0.1:9000")
  </code></pre>
  
  <p>What options do I need to add to <code>create_connection</code>? Adding <code>sslopt={"cert_reqs": ssl.CERT_NONE}</code> does not work:</p>
  
  <pre><code>websocket._exceptions.WebSocketBadStatusException: Handshake status 400
  </code></pre>