backports.tempfile travis-ci python

Backports of new features in Python's tempfile module