Python script to manage GStreamer functions