You need to have a handler function, by default at index.handler. You can even do an old callback method or do a promise(async/await) method. Whatever way you do, you have to keep it consistent:
Python
Build Command
This build command is more difficult since it needs the dependencies, and dependency management in Python is kinda dumb. I think all this does is create a requirements.txt which it then uses in the build.