Although @warpstar22’s advice is good, be aware that having opencv appsink through opencvio may not be efficient on jetson. You may get much better performance with jetson-utils.
Not tried with python, but you may give a try to last version of jetson-utils supporting mjpg sources.
You may have a look to this topic or detectnet.py for a python starting point.