refactored file_puller.py