How can I make this code much faster?
I think there are alternatives of imported modules and functions but it\'s a problem because I don\'t know where I can search fo