def split_import_components(import_statement):
    """
    Given a (multi-line) import statement, return the base and components

        from x.y import a, b, c

        ->

        ('x.y', ['a', 'b', 'c'])
    """
    left, right = import_statement.split('import')
    right = right \
        .replace('(', '') \
        .replace(')', '') \
        .replace('\\', '')

    base = left.replace('from', '').strip()

    components = [
        component.strip()
        for component
        in right.split(',')
        if component
    ]
    return base, components