Python before 3.9 release does not support the built-in generic type syntax "set[str]".
To ensure compatibility, imported "Set" from the "typing" module and updated type annotations.
Fixes: PPW-1115
Signed-off-by: Volodymyr Martysh <v.martysh@inango-systems.com>