The grep module is accessible via the paste.script module.
This class contains 27 members.
See the source for more information.