added the return id to the add() function in the python template