Convert Array To Linked List In Python Code