import pytz


def timezones(prefix=''):
    """Lists all timezones and alpha2 code of the country.

    :param prefix: Filter timezones with prefix (default is no prefix).
    :type prefix: string
    :return: Dictonary of timezones and country codes.
    :rtype: dict
    """
    timezone_country = {}
    for countrycode in pytz.country_timezones:
        timezones = pytz.country_timezones[countrycode]
        for timezone in timezones:
            if timezone.startswith(prefix):
                timezone_country[timezone] = countrycode
    return timezone_country