...
import shutil
import importlib
...
dependencies = [
    ('requests', '==2.11.1')
]
...
def initialize(project):
...
    for name, version in dependencies:
        project.depends_on(name, version)
....
def package_serverless(logger):
....

    for name, _ in dependencies:
        vendor_path = os.path.join('target/dist/python-serverless-example', name)
        if os.path.isdir(vendor_path):
            continue
        dep_path = os.path.abspath(os.path.dirname(importlib.import_module(name).__file__))
        shutil.copytree(dep_path, vendor_path)
...