fetch.py: put everything into a function