'Initiate Extension and set up configs.'

def __init__(self, *args, **kwargs):

    if len(args):
        if (args[0] is not None):
            self.setConfigs(args[0])
        warnings.warn(u'Extension    classes    accepting    positional    args    is    pending    Deprecation.    Each    setting    should    be    passed    into    the    Class    as    a    keyword.    Positional    args    are    deprecated    and    will    raise    an    error    in    version    2.7.    See    the    Release    Notes    for    Python-Markdown    version    2.6    for    more    info.', DeprecationWarning)
    if (u'configs' in kwargs.keys()):
        if (kwargs[u'configs'] is not None):
            self.setConfigs(kwargs.pop(u'configs', {}))
        warnings.warn(u'Extension    classes    accepting    a    dict    on    the    single    keyword    "config"    is    pending    Deprecation.    Each    setting    should    be    passed    into    the    Class    as    a    keyword    directly.    The    "config"    keyword    is    deprecated    and    raise    an    error    in    version    2.7.    See    the    Release    Notes    for    Python-Markdown    version    2.6    for    more    info.', DeprecationWarning)
    self.setConfigs(kwargs)
