fix #3569 ok to import inside function
fix #3569 ok to import inside function

mkeilman/sirepo,mkeilman/sirepo,radiasoft/sirepo,mkeilman/sirepo,radiasoft/sirepo,mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo