It appears I completely misunderstood the --add-init-section option of
g-ir-scanner. It's only relevant for the creation of the introspection
data. It's not a code section which gets called whenever the respective
gobject language bindings (in your case pygobject) load a typelib. So in
any case
I think a minimal program which reproduces the error would be helpful here.
What exact versions of gstreamer, pygobject (python2-gobject), etc. are you
using? In any case, calling Gst.ElementFactory.make with one argument from
an interactive session already raises a TypeError exception for me as