#NEWLINE# def unpack_args( args ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( f , idx , nmax , k , i , j , Qt , base , hdry ) = args #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# sys . stdout . write ( 'could not unpack args\n' ) #NEWLINE# raise #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# current = mp . current_process ( ) #NEWLINE# imod = ( current . _identity [ 0 ] - 1 ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# sys . stdout . write ( 'could not get current process\n' ) #NEWLINE# raise #NEWLINE# #UNINDENT# return f ( imod , idx , nmax , k , i , j , Qt , imod , hdry )