util.py: add list_to_tuple

convert list to tuple recursively