Add events + triggers and action for content rules + pep8