import requests


def get_mac_addr(userkey, mac):
    """
    Function to get the Mac Address Info requested from macaddress.io
    Makes a request to macaddress.io via their API using Headers
    Parameters:
    userkey (str): User key to access the macaddress.io API
    mac (str): Mac address to lookup
    Returns:
    Response: Returns Response object from lookup
    """
    session = requests.Session()
    session.headers.update({'X-Authentication-Token': userkey, 'Content-Type':'application/json'})
    url = "https://api.macaddress.io/v1"
    params = {"search": mac, "output": "json"}
    response_data = requests.get(url, headers=session.headers, params=params)
    return response_data