Update mpl API dependent code to use LooseVersion