def _preparse(source, f=compose(_replace_locals, _replace_booleans, _rewrite_assign)):
 assert callable(f), 'f must be callable'
 return tokenize.untokenize(lmap(f, tokenize_string(source)))

def _preparse ( source , f = compose ( _replace_locals , _replace_booleans , _rewrite_assign ) ) : assert callable ( f ) , 'f must be callable' return tokenize . untokenize ( lmap ( f , tokenize_string ( source ) ) )
compose a collection of tokenization functions parameters source : str a python source code string f : callable this takes a tuple of as its argument and returns a tuple with the same structure but possibly different elements .