Handle permissions for the tags.root
Fix pep8 errors
Remove debug leftover