bool value of a list in Python,return len(my_list)