soy_pdns.py class methods to functions