python function for url load