Implemented Python support for patterns, added mediator, module and new file patterns