def createTempFile(self, streams=1, suffix=b''):
    with open(self.filename, 'wb') as f:
        f.write((self.DATA * streams))
        f.write(suffix)
def createTempFile(self, streams=1, suffix=b):
    with open(self.filename, 'wb') as f:
        f.write((self.DATA * streams))
        f.write(suffix)