pep8, duplicate checking, on scrap to trip conversion