Convert Array To Linked List Python