public function parse(PyStringNode $node) {
    // Sanitize PyString test by removing initial indentation spaces.
    $strings = $node->getStrings();
    if ($strings) {
      preg_match('/^(\s+)/', $strings[0], $matches);
      $indentation_size = isset($matches[1]) ? strlen($matches[1]) : 0;
      foreach ($strings as $key => $string) {
        $strings[$key] = substr($string, $indentation_size);
      }
    }
    $raw = implode("\n", $strings);
    return Yaml::parse($raw);
  }