Dynamically import a method in a file, from a string Dynamically import a method in a file, from a string python python