Linkedhashset To Arraylist Using Toarray In Python