If you are not familiar with python gstreamer https://gstreamer.freedesktop.org/bindings/python.html, it is not recommended to use python deepstream. Please use c/c++ deepstream instead.
Even with c/c++ deepstream, you need to have the basic knowledge and development skills of gstreamer before you start with deepstream SDK.