Parses bank CSV stream (like a file handle or StringIO) and returns
    Transactions instance.

    Returns:
        A ``Transactions`` object.

def parse_stream(stream, format=u"Jæren Sparebank"):
    """Parses bank CSV stream (like a file handle or StringIO) and returns
    Transactions instance.

    Returns:
        A ``Transactions`` object.
    """
    Class = formats[format.lower()]
    return Class.csv_to_transactions(stream)