Remove unnecessary import and replace depreciated .has_key() Python method with GStreamer's .has_field() method.