Gandi Automatic DNS script in python 3