def store_ctx(x):
 if (not hasattr(x, 'ctx')):
  return
 x.ctx = ast.Store()
 if isinstance(x, (ast.Tuple, ast.List)):
  for e in x.elts:
   store_ctx(e)
 elif isinstance(x, ast.Starred):
  store_ctx(x.value)

def store_ctx ( x ) : if ( not hasattr ( x , 'ctx' ) ) : return x . ctx = ast . Store ( ) if isinstance ( x , ( ast . Tuple , ast . List ) ) : for e in x . elts : store_ctx ( e ) elif isinstance ( x , ast . Starred ) : store_ctx ( x . value )
recursively sets ctx to ast .