deprecate core.tmp-dir and use tempfile.mktemp instead
Merge pull request #245 from JonNelson/use_tempfile_mktemp

Use tempfile mktemp instead of hard-coding (or relying on the user to configure something in a config file)