ported gstreamer.py and test_common_gstreamer.py