While Using Sudo Command My Python Script Crash Raspberry Pi Stack

While Using Sudo Command My Python Script Crash Raspberry Pi Stack