https://github.com/datastax/python-driver/pull/602
merged with tests: https://github.com/datastax/python-driver/commit/cfd3ddc9b84cbe9d3f392c9cf50f5dde6ecd2c2a