def unpack(value, number=2, default=None):
    """Unpack given `value` (item/tuple/list) to `number` of elements.
    Elements from `value` goes first, then the rest is set to `default`."""

    if not isinstance(value, list):
        if isinstance(value, tuple):
            value = list(value)
        else:
            value = [value]

    assert len(value) <= number

    for _ in range(number - len(value)):
        value.append(default)

    return value