can set tmp dir using a TMPDIR env variable: http://docs.python.org/2/library/tempfile.html#tempfile.tempdir