'Return the country code for the given IP Address or FQDN.'

def country_code(self, query):

    enc_query = self._check_query(query, city_or_country=True)
    return self.country(enc_query)['country_code']
