How to retrieving newly created element Ids with python?

How to retrieving newly created element Ids with python?
Any help will appreciated

@urdiafa

Sorry,I am poor in English,so i express so poor,I try to use revit api “DocumentChanged” in Python
But doesn’t work , so ask help in here,Sorry can’t express my problem so well

@urdiafa post you Python code and errors please