Fixed setrois to work in both Python and Jython, made roi lists into
list/dict, and removed new, unnecessary functions