added list_depth to utils.py