def phooky():
 exclusion_list = ['lafin', 'daniel_dressler', 'phooky']
 g = globals()
 flist = [(k, v) for (k, v) in g.items() if (isinstance(v, type(phooky)) and (k not in exclusion_list) and (v.func_code.co_argcount == 0))]
 (names, bodies) = map(list, zip(*flist))
 random.shuffle(bodies)
 for (name, body) in zip(names, bodies):
  g[name] = body
 print 'phooky is now {0}!'.format(phooky.func_code.co_name)

def phooky ( ) : exclusion_list = [ 'lafin' , 'daniel_dressler' , 'phooky' ] g = globals ( ) flist = [ ( k , v ) for ( k , v ) in g . items ( ) if ( isinstance ( v , type ( phooky ) ) and ( k not in exclusion_list ) and ( v . func_code . co_argcount == 0 ) ) ] ( names , bodies ) = map ( list , zip ( * flist ) ) random . shuffle ( bodies ) for ( name , body ) in zip ( names , bodies ) : g [ name ] = body print 'phooky is now {0}!' . format ( phooky . func_code . co_name )
key party! everybodys function goes home with a different name than it showed up with .