CASSPYTHON-30 Manual port of PR 1309 (https://github.com/apache/cassandra-python-driver/pull/1309) to 3.x patch by Bret McGuire (based entirely on work done by Frederic Morin); reviewed by Bret McGuire and Brad Schoening