Python tries