Fixes whitespace everywhere
Fixes import issues
Fixes other warnings
Fixes TypeError: takes 1 argument (0 given)
Replace unicode with str for python 3.
Get real path for tempfile.mkdtemp to fix tests on mac os x.
walk()> top_down parameter not passed to _walk()