def _create_file(content=''):
 sjson_file = tempfile.NamedTemporaryFile(prefix='subs_', suffix='.srt.sjson')
 sjson_file.content_type = 'application/json'
 sjson_file.write(textwrap.dedent(content))
 sjson_file.seek(0)
 return sjson_file

def _create_file ( content = '' ) : sjson_file = tempfile . NamedTemporaryFile ( prefix = 'subs_' , suffix = '.srt.sjson' ) sjson_file . content_type = 'application/json' sjson_file . write ( textwrap . dedent ( content ) ) sjson_file . seek ( 0 ) return sjson_file
create temporary subs_somevalue .