pep8 cleanups, remove unused imports
catch the error if the domain creation or deletion doesn't work
pep8 spacing issues