It is common to prototype code in the Python Editor, and you may think to do this when you need write some code for an Expression. Beware, though they look deceptively similar, the
Contexts are an essential part of Gaffer. We're working on some more structured documentation about them. In the mean time, here is a list of common Context Variables set by Gaffer