Move import inside the code block. Bad practice but it fixes the problem.
Fix list/set structure in settings.