fixed some problems when you did not dilate, a file ROIv was expected which was not created. Further the format of the file was transformed to PEP8