I have import some of my modules dynamically based on button click, i have used like below\"
The whole logic seems weird for me. If you use a module just import it and then use it under certain conditions or after event is triggered