Something seems wrong with the input.
input for the first puzzle:
5 3
WALL:UP:unlocked WALL:LEFT:unlocked STRAIGHT:LEFT:locked WALL:UP:unlocked WALL:UP:unlocked
WALL:UP:unlocked WALL:UP:unlocked STRAIGHT:UP:unlocked WALL:UP:unlocked WALL:UP:unlocked
WALL:UP:unlocked WALL:RIGHT:unlocked STRAIGHT:RIGHT:locked WALL:UP:unlocked WALL:UP:unlocked
2 0 DOWN 0
0
2
the rooms should be integers not a tuple of 3. (WALL:UP:unlocked tuples should be a integer 0)