fix: cassandra on python 3.4, pep8

This patch fixes dynamic importing error of mock cassandra on Python 3.4
and Pep8.