python2 is [no longer a supported runtime](https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/) for AWS. When I ran this example as it currently is in the docs it created a python2 project. Interestingly selecting `AWS - Python - Starter` from the CLI did create a python3 project, although the code seems to suggest this should be calling the `aws-python` template, but I probably missed a link there.
Read this on the main serverless docs site
Serverless Framework Documentation
Develop, deploy, troubleshoot and secure your serverless applications with radically less overhead and cost by using the Serverless Framework. The Serverless Framework consists of an open source CLI and a hosted dashboard. Together, they provide you with full serverless application lifecycle management.
Are you new to serverless application development?
Sign up for our hosted dashboard (it’s free) and we’ll help deploy your first serverless app in minutes.
If you prefer to start on the CLI, use our get started guide.
If you are an experienced user of the Serverless Framework
Our Pro dashboard allows you to import existing projects. Track performance, troubleshoot, configure CI/CD and deployment policies, and get end-to-end serverless application lifecycle management. Get started for free.
Have questions? Visit our Forum.
For inspiration, check out example code, guides and use cases.