import pytz
from dateutil.tz import gettz


def timezone(zone):
    """Try to get timezone using pytz or python-dateutil

    :param zone: timezone str
    :return: timezone tzinfo or None
    """
    try:
        return pytz.timezone(zone)
    except ImportError:
        pass
    try:
        return gettz(zone)
    except ImportError:
        return None