Eliminated dependency on `six`. Fixed tests.

Fixed tests on Windows, since /tmp doesn't exist there.