from munch import munchify
import requests
import arrow

EVENTS_URL = ("http://www.pennathletics.com/v3/events?page=1&limit=40"
              "&timezone=America/New_York&sort_direction=ASC"
              "&sub_types=SportEvent,MediaEvent&sort=eventDate&start_date={}")


def events():
    """Fetch events for the current day"""
    date = arrow.now().format('YYYY-MM-DD')
    uri = EVENTS_URL.format(date)
    return munchify(requests.get(uri).json())

@@ -53,55 +53,58 @@
 row%0A
-%0AEVENTS_URL = (%22http://www.pennathletics.com/v3
+from . import BASE_URL%0A%0AEVENTS_URL = (BASE_URL + %22
 /eve
@@ -122,33 +122,16 @@
 limit=40
-%22%0A              %22
 &timezon
@@ -148,16 +148,33 @@
 New_York
+%22%0A              %22
 &sort_di
@@ -184,33 +184,16 @@
 tion=ASC
-%22%0A              %22
 &sub_typ
@@ -216,16 +216,33 @@
 diaEvent
+%22%0A              %22
 &sort=ev

Use BASE_URL everywhere