Update util.py

Creating a list when list or tuple instead of using original data