Modified utils.py to use base_url instead of the full url