The Python code used in the example_cluster_dns test is not compatible with Python3. Keeping in mind that Python2 will no longer be supported from 2020 onwards, it is a good idea to address this issue.