Don't rely on /tmp/goosetmp existing or being writable any more.  

Requiring /tmp/goosetmp to exist and be writable was becoming a problem, it was easy for that directory to disappear or somehow get the wrong permissions when deploying.  I changed this to use Python's tempfile module to determine an appropriate temporary directory.