Fomate pep8 and remove redundant test for 'new_labels' error