Add pymode directive.