def get_data_center(hostname):
    """Guess data center from Keeper server hostname

    hostname(str): The hostname component of the Keeper server URL
    Returns one of "EU", "US", "US GOV", or "AU"
    """
    if hostname.endswith('.eu'):
        data_center = 'EU'
    elif hostname.endswith('.com'):
        data_center = 'US'
    elif hostname.endswith('govcloud.keepersecurity.us'):
        data_center = 'US GOV'
    elif hostname.endswith('.au'):
        data_center = 'AU'
    else:
        # Ideally we should determine TLD which might require additional lib
        data_center = hostname
    return data_center