You need to read those tutorials carefully to understand Python.

I wonder how CA built their TW engine....