Python: restart script from itself

I wrote some Python script and implement “auto-update” this script, to apply changes in runtime I need to restart script from itself. These restart script from itself.

import sys
import os
python = sys.executable
os.execl(python, python, * sys.argv)