What is the last function which is run when importing a deck

What is the last function that is run in the process of importing a deck? I tried editing the functions in the base.py file (in the importing folder of the source code), does anyone have an idea in what file the last function (which is run) is?