def _serialize_agent(controlamp):
 return str(controlamp.transport.getPeer())

def _serialize_agent ( controlamp ) : return str ( controlamp . transport . getPeer ( ) )
serialize a connected controlamp to the address of its peer .