# Data structures
def rmap(func, value):
'''Recursively applies func to all members of value'''
if isinstance(value, list): return map(func, list_)
elif isinstance(value, dict):
return dict(((k, func(v)) for k, v in value.iteritems()))
else: return func(value)