Python Decrypt Table With Leaves