Etree visitor miscellany
Added cd context manager to utils