Danny,
I made the changes you suggested with no success.
Those test scripts gave me the same results after binding the namespace to
"_", I got:
== script 1 ==
from string import lower
return lower('SPAM')
=========
== script 2 ==
return _.string.lower('SPAM')
=========
In addition, it seems that "importing" in an accessrule slows down the
server.
Cheers,
--Gilles