Added test for rmtree;moved the NamedTempFile and rmtree tests out of
test.py into their own file; Includes pep8 fixes; Bug 885224