Cassandra Key Cache hit ratio fix for Cassandra v1.2 and minor PEP8 cleanup.