def classname(value, options=''):
    """
    Returns classname.

    If options is given, checks if class name is in there before returning,
    else it returns None.
    """
    cn = value.__class__.__name__.lower()
    if not options or cn in options:
        return cn
    return ''