Convert Array To Set In Python