Have fixed regex so that it capture lists properly - note that it forces pep8 format of list