title: python define replica set configuration
body: <p>I'm writing the script to setup the replaset for mongo in python.
  The first part of the script starts the processes and the second should configure the replicaset. </p>
  
  <p>From the command line I ussually do:</p>
  
  <pre><code>config={_id:"aaa",members:[{_id:0,host:"localhost:27017"},{_id:1,host:"localhost:27018"},{_id:2,host:"localhost:27019",arbiterOnly:true}]}
  rs.initiate(config)
  rs.status();
  </code></pre>
  
  <p>And then I'm looking from rs.status() that all members are initialized
  I want to do the same in python script.</p>
  
  <p>In general i'm looking for a good reference of setup scripts for mongodb (also sharding). I saw the python script in their site, it is a good start point (but it only for single machine and sinle node in replSet). I need to setup all on different machines.</p>
  
  <p>Thanks</p>