py3: assign e so it survives outside the scope