uuid generator function based on https://www.sublimetext.com/forum/viewtopic.php?f=5&t=3795#p17732