def parse_teachers(teachers_str):
    """
    Separates teachers in theory and practice teachers.
    Args:
        teachers_str (str): String containing theacher names and their role.
    Returns:
        Tuple containing:
            list of theory teachers
            list of practice teachers
    """

    teachers = teachers_str.split(', ')
    # teachers = [i for i in teachers if '(' in i]
    prac_tea = [i[:i.find(' (')] for i in teachers if '(Jefe' in i]
    theo_tea = [i[:i.find(' (')] for i in teachers if '(Titular' in i]

    return (theo_tea, prac_tea)