Somewhere around here you should write which features of Python are supported in lambdas, and best practices for doing more complicated functions (for example, if you don't want to express your function as a lambda, you can call a global function). Also explain that PySpark will automatically ship your code to workers if you give it the right files.