A DVRK-based Framework for Surgical Subtask Automation