How to convert charlist to string?

What library do use for interactions with Python? I think it might have an option to return binaries instead of charlists

But until then you can just charlist = 'abc'; string = "#{charlist}" or use to_string. To traverse maps, you can use Map.new()

So, to convert one map, you should write something like

Map.new(old_map, fn
  {list, value} when is_list(list) ->
    key =
      try do
        "#{list}"
      except
        # In case it's not a charlist
        _ -> list
      end

    {key, value}

  other ->
    other
end)