Python middleware error when trying example from documentation

I was able to reproduce your positive flow only when I updated custom_middleware_bundle by adding file extension
"custom_middleware_bundle": "bundle.zip",
This change lead me to the same 100 has type int error

Thanks