def close_children_tasks(self, parent_task_name):
if parent_task_name not in self.tasks:<EOL><INDENT>return<EOL><DEDENT>while self.tasks:<EOL><INDENT>next_task = reversed(self.tasks.keys()).next()<EOL>if next_task == parent_task_name:<EOL><INDENT>break<EOL><DEDENT>del self.tasks[next_task]<EOL><DEDENT>
Closes all the children tasks that were open

Args:
    parent_task_name (str): Name of the parent task

Returns:
    None