Refactored file_pusher.py