first findings with latest code

i just ran my old test.sh dyndnsc cmdline script and it crashed with keyerror. fixed.
also ran pycharm's codechecker and found 2 little other issues.