While working on my Vala demo, I was playing around with the new Python bindings for DeepStream. It does mostly the same thing, running inferences on multiple video streams, only mce just draws bounding boxes. Check it out on PyPi or on github. It should only require deepstream-4.0 (sudo apt install deepstream-4.0) and the python deepstream bindings.
Many thanks to DaneLLL, amycao, ChrisDing, carolyuu, and the rest of the DeepStream team I might be forgetting for helping me resolve the various issues I ran into writing this app.
Ther are a few known issues I am working on (eg. frame rate, osd frame number). If you find any more. please report the issues on GitHub.