Add capability to work with file handle
Add universal new line mode in populate_roi.py
Add writing permission to tempfile mode in populate_roi.py
Merge pull request #2491 from emilroz/populate_metadata_fix

Add capability to work with file handle