Removed trailing whitespace (Sublime Text does it automatically).
Replaced custom tempDir() function with os.TempDir() that does the same thing.
Changed imports so I can keep developing.