Looping over a list in Python,[x for x in mylist if len(x) == 3]