Serverless Framework can easily create Python Lambda function that has dependencies on other packages.
Install plugin.
$sls plugin install -n serverless-python-requirements
Create requirements.txt and put Python packages and their versions. The packages versions are optional.
certifi==2019.6.16 chardet==3.0.4 idna==2.8 python-cmr==0.3.3 requests==2.22.0 urllib3==1.25.3