Tamper protection for python scripts