adjust for pep8
add obtain_good_candiates function