Added checks to append in ROI lists, and wrapped those lists in Jython