How To Convert Array Into Set In Python