def bend(mapping, source, context=None):
context = {} if context is None else context<EOL>transport = Transport(source, context)<EOL>return _bend(mapping, transport)<EOL>
The main bending function.

mapping: the map of benders
source: a dict to be bent

returns a new dict according to the provided map.