File fetcher in python