Port of python2 examples to use new api

Porting python2 examples to python3
Also using gstreamer 1.0 instead of gstreamer 0.11