Remove RestrictedPython usage for performance improvement

fixes https://dev.plone.org/ticket/8792