fixes TypeError coercing of tempfile in subunit2json.py

Closes-Bug: #1343312
Change-Id: I9d86169de7dd69311fcf1478f0708a66834d5857