2.4 fix python warnings

Force initialization of local variables-pointers with `NULL` value.