Python code in saved torch script

Hi.
I saw that there is python code in torch script .pt archive file and i was curious to know why as this king of code is independant from python code to run with c++ api.
Also, is there a way to hide this code if i don’t want that the user see any details.
Thanks