Refactored code in PYUtility.
Fixed pryv of files by drag and drop and fixed pryv of text with details.