Modify dynamic import test in python.