always pep8
About #13 : rename dist_function to cost_function