def treat_machine_dict(machine):
 machine.update({'id': machine.get('id', ''), 'image': machine.get('image', ''), 'size': '{0} MB'.format(machine.get('memorySize', 0)), 'state': machine_get_machinestate_str(machine), 'private_ips': [], 'public_ips': []})
 if ('memorySize' in machine):
  del machine['memorySize']
 return machine

def treat_machine_dict ( machine ) : machine . update ( { 'id' : machine . get ( 'id' , '' ) , 'image' : machine . get ( 'image' , '' ) , 'size' : '{0} MB' . format ( machine . get ( 'memorySize' , 0 ) ) , 'state' : machine_get_machinestate_str ( machine ) , 'private_ips' : [ ] , 'public_ips' : [ ] } ) if ( 'memorySize' in machine ) : del machine [ 'memorySize' ] return machine
make machine presentable for outside world .