Without the hidden files some packages will be broken. You gotta change this line to be
zip -r /io/lambda.zip * .[^.]*
Also I'd rather use this as a layer, so we need to zip the files in a python/ directory like so
cd tmp411
zip -r /io/lambda.zip *
cd ..
mv tmp411 python
zip -r /io/lambda-layer.zip python