How To Convert Nested List To Set In Python