tempfile.mkdtemp does not like bytes in py3k