pythomancer·hace 8 meses·discuss(author here) check_brackets_bt is actually exactly the algorithm that Raph mentions