In summary when you run the Python script in 2.7 if you lay the blocks you see below it will trigger the following events:
- 46: TNT Random storm trooper
- 20: glass a Random rainbow wall
- 41:gold Rainbow Storm trooper
- 2:grass Clears the wall
- 47: bookshelf Launch Xwing.
You can download the files needed here: