Fix porttree_root deprecation warnings

export PYTHONWARNINGS=d to see the warnings that this fixes.