Python Create Binary Tree From Array