def _extract_inventory_in_use(body):
 match = _RE_INV_IN_USE.search(body)
 if match:
  return match.group(1)
 return None

def _extract_inventory_in_use ( body ) : match = _RE_INV_IN_USE . search ( body ) if match : return match . group ( 1 ) return None
given an http response body .