title: How to create new topic with pykafka with partitions and replication?
body: <p>I want to be able to programmatically create a topic in Kafka using <a href="http://pykafka.readthedocs.org/en/latest/" rel="nofollow">pykafka</a>.  I know that accessing the TopicDict will automatically create a topic if one does not exist but I don't know how to control the number of partitions/replicas with that.  Also, it has a nasty bug where it ends up in an infinite loop if Kafka goes down.  Basically I want to do something like the following:</p>
  
  <pre><code>create_topic('mytopic', partitions=2, replicas=3)
  </code></pre>