minor Python style; move namedtuples to module
eliminate GStreamer globals and initialize_config