Ensure namespace is local to task file

Fixes potential issue with task files modifying 
a global namespace var and clobbering each other.
Add sudo example