use tempfile.Tempfile instead of os.devnull if file DNE, 'r', and not FILE_MODE


git-svn-id: svn+ssh://svn.mystic.cacr.caltech.edu/pathos/dill@722 8bfda07e-5b16-0410-ab1d-fd04ec2748df
Merge branch 'master' of https://github.com/uqfoundation/dill