Installation & First Steps
MPF User Manual
Config file section
The scriptlets: section of your config is where you list you custom code scriptlets.
This has been deprecated with 0.50+. Use custom_code: instead.
Scriptlets still work but will be removed eventually.