Library Tactician [Passed in Python]

Please avoid posting solutions, that just takes away the point of the game.

Also, that is not how you are supposed to solve this level. You are supposed to maintain the formation otherwise more enemies will spawn. See the related threads (e.g. this one) if you need further help.