moved import inside of functions if able and looks good.
moved import inside of functions if able and looks good.

pymal-developers/pymal,pymal-developers/pymal,pymal-developers/pymal,pymal-developers/pymal