tweaking xml_utils to handle list and dict strings in random variables