def find_datacenter(response):
    """Grabs the X-Served-By header and pulls the last three characters
    as the datacenter

    Returns:
        string: the datacenter identification code
    """
    xsb = response.headers['X-Served-By']
    return xsb[len(xsb) - 3: len(xsb)]