Redefining len here so it will be able to work with non-ASCII characters

def len(iterable):
    """Redefining len here so it will be able to work with non-ASCII characters
    """
    if not isinstance(iterable, str):
        return iterable.__len__()

    try:
        return len(unicode(iterable, 'utf'))
    except:
        return iterable.__len__()