Making tempdir() context manager implementation a bit simpler
Restore _next_class
Remove excess whitespace
Merge pull request #14 with edits