s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of it