Now that master has been merged in, you can replace this loop with:
~~~python
from cassandra.concurrent import execute_concurrent_with_args
...
ss = SimpleStatement('INSERT INTO cf(k, i) VALUES (0, 0)', consistency_level=consistency_level)
execute_concurrent_with_args(session, ss, [None] * count)
~~~