update fetch.py
move some code to help.py