incorporated Alexis's code to create the unique id in python