RestrictedPython is a defined subset of the Python language which allows to provide a program input into a trusted environment.