Any suggestions for the language? The game and site are written in Python so that seemed most natural, plus it's a high-level language with a simple syntax. I could add more if people wanted though.
Maybe Lua would be a good candidate? From the usages I have seen of Lua, it could match the use case.
If you test on Mac OS, you should be aware that ulimit is not capable of limiting memory in Mac OS.