It compiles a go program as a native library using cgo, which is loading some more golang code compiled as a plugin.
The native library also happens to implement the Python module binary interface so eventually golang code can be called by the Python AWS Lambda runtime, but it should work with any other Python program.