The two are mostly unrelated. uuid is a python library that you generally don't need to use or worry about. It basically generates a unique string. http://docs.python.org/library/uuid.html
id, when talking about web2py, usually refers to the "id" field that Web2py automatically adds to every table definition that serves as a table's primary key.