Create Binary Tree From List Python Code