def writeFrame(self):
    'Write the received frame to a temp image file. Return the image file.'
    cachename = ((CACHE_FILE_NAME + str(self.sessionId)) + CACHE_FILE_EXT)
    file = open(cachename, 'wb')
    for item in self.cutFrameList:
        file.write(item)
    file.close()
    return cachename
Write the received frame to a temp image file. Return the image file.
def writeFrame(self):
    
    cachename = ((CACHE_FILE_NAME + str(self.sessionId)) + CACHE_FILE_EXT)
    file = open(cachename, 'wb')
    for item in self.cutFrameList:
        file.write(item)
    file.close()
    return cachename