pep8fy
add docstring in return_pastfile
rename function
rename function in tests